From 770d590e134df7f92d5db8de82bb400e1b9f6b94 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Tue, 1 Jun 2021 17:03:10 +0200 Subject: [PATCH] [infra][jvm] Don't override jvm_args in coverage builds (#5862) Specify --additional_jvm_args instead of --jvm_args so that custom target JVM args (e.g. --enable-preview) are preserved in coverage runs. --- infra/base-images/base-runner/coverage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-runner/coverage b/infra/base-images/base-runner/coverage index 57b537c44..31356cf9b 100755 --- a/infra/base-images/base-runner/coverage +++ b/infra/base-images/base-runner/coverage @@ -145,7 +145,7 @@ function run_java_fuzz_target { # Use 100s timeout instead of 25s as code coverage builds can be very slow. local jacoco_args="destfile=$exec_file,classdumpdir=$class_dump_dir,excludes=com.code_intelligence.jazzer.*" local args="-merge=1 -timeout=100 -close_fd_mask=3 --nohooks \ - --jvm_args=-javaagent:/opt/jacoco-agent.jar=$jacoco_args \ + --additional_jvm_args=-javaagent:/opt/jacoco-agent.jar=$jacoco_args \ $corpus_dummy $corpus_real" timeout $TIMEOUT $OUT/$target $args &> $LOGS_DIR/$target.log