Set JAVA_HOME for bazel_with_jdk_test
Change-Id: I241421d1514ffeed1a203ab85dc203ae41a72903
diff --git a/src/test/shell/bazel/bazel_with_jdk_test.sh b/src/test/shell/bazel/bazel_with_jdk_test.sh
index d4a51f3..98c0223 100755
--- a/src/test/shell/bazel/bazel_with_jdk_test.sh
+++ b/src/test/shell/bazel/bazel_with_jdk_test.sh
@@ -38,6 +38,8 @@
# actually using the bundled one. Remove it.
fgrep -v -- "--host_javabase" "$TEST_TMPDIR/bazelrc" > "$TEST_TMPDIR/bazelrc.new"
mv "$TEST_TMPDIR/bazelrc.new" "$TEST_TMPDIR/bazelrc"
+ # ... but ensure JAVA_HOME is set, so we can find a default --javabase
+ export JAVA_HOME="${bazel_javabase}"
}
function cleanup() {