For some reason, rerun commands in jtr files have double back slashes:
----------rerun:(31/4517)*----------
cd /Users/dnsimon/ws/galahad-ee/build/macosx-x64-debug/test-support/jtreg_open_test_jdk_com_sun_jdi_EATests_java/scratch/0 && \\
DISPLAY=/private/tmp/com.apple.launchd.9Flv3wvaPv/org.xquartz:0 \\
HOME=/Users/dnsimon \\
JIB_HOME=/Users/dnsimon/jib/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-20230622.095646-511-distribution.zip/jib-3.0-SNAPSHOT-distribution \\
JTREG_JAVA_OPTIONS='-Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:-VerifyContinuations -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler' \\
JTREG_RETAIN=all \\
These double backslashes need to be corrected to a single backslash for the purpose of using the rerun command otherwise the shell adds them as single backslashes to the command line.
Note the when the rerun command is printed to the console in verbose jtreg output, it only uses a single backslash for escaping the new line.
Or maybe I'm not understanding the way or context in which the rerun command should be used?
----------rerun:(31/4517)*----------
cd /Users/dnsimon/ws/galahad-ee/build/macosx-x64-debug/test-support/jtreg_open_test_jdk_com_sun_jdi_EATests_java/scratch/0 && \\
DISPLAY=/private/tmp/com.apple.launchd.9Flv3wvaPv/org.xquartz:0 \\
HOME=/Users/dnsimon \\
JIB_HOME=/Users/dnsimon/jib/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-20230622.095646-511-distribution.zip/jib-3.0-SNAPSHOT-distribution \\
JTREG_JAVA_OPTIONS='-Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:-VerifyContinuations -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler' \\
JTREG_RETAIN=all \\
These double backslashes need to be corrected to a single backslash for the purpose of using the rerun command otherwise the shell adds them as single backslashes to the command line.
Note the when the rerun command is printed to the console in verbose jtreg output, it only uses a single backslash for escaping the new line.
Or maybe I'm not understanding the way or context in which the rerun command should be used?