[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.
This commit is contained in:
Fabian Meumertzheim 2021-06-01 17:03:10 +02:00 committed by GitHub
parent 01fc6b3040
commit 770d590e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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