Merge branch 'stable-2.16' into stable-3.0

* stable-2.16:
  Init: Increase severity log level to error on exceptions
  Bazel: Fix genrule2 to clean up temporary folder content
  AbstractIndexTests: Inline constant assertChangeQuery string parameter
  AbstractIndexTests: Align assertChangeQuery method access with its use
  XContentBuilder: Use JsonFactory.builder() and new feature enums

Change-Id: Ieeb295d117830bc1211c2a92dcaa578567c41413
This commit is contained in:
David Pursehouse
2019-11-01 08:14:17 +09:00
4 changed files with 18 additions and 17 deletions

View File

@@ -21,6 +21,7 @@ def genrule2(cmd, **kwargs):
"ROOT=$$PWD",
"TMP=$$(mktemp -d || mktemp -d -t bazel-tmp)",
"(" + cmd + ")",
"rm -rf $$TMP",
])
native.genrule(
cmd = cmd,