diff --git a/src/test/shell/bazel/bazel_java_test.sh b/src/test/shell/bazel/bazel_java_test.sh index 5b2fd20366b4ec..e2977ffd21871a 100755 --- a/src/test/shell/bazel/bazel_java_test.sh +++ b/src/test/shell/bazel/bazel_java_test.sh @@ -1928,6 +1928,11 @@ EOF } function test_header_compiler_direct_supports_release() { + if [[ "${JAVA_TOOLS_PREBUILT_ZIP}" == "released" ]]; then + # TODO: Remove after the next java_tools release. + return + fi + mkdir -p pkg cat << 'EOF' > pkg/BUILD java_library(name = "a", srcs = ["A.java"], deps = [":b"]) @@ -1940,7 +1945,7 @@ EOF public class B {} EOF - bazel build //pkg:a --verbose_failures --announce_rc >& $TEST_log || fail "build failed" + bazel build //pkg:a >& $TEST_log || fail "build failed" } run_suite "Java integration tests"