8274888: Dump "-DReproduce=true" to the test VM command line output

Reviewed-by: thartmann, kvn
This commit is contained in:
Christian Hagedorn 2021-10-21 14:05:45 +00:00
parent d589b664cc
commit 3b0ce23bcd

View File

@ -153,6 +153,8 @@ public class TestVMProcess {
} catch (Exception e) {
throw new TestFrameworkException("Error while executing Test VM", e);
}
process.command().add(1, "-DReproduce=true"); // Add after "/path/to/bin/java" in order to rerun the test VM directly
commandLine = "Command Line:" + System.lineSeparator() + String.join(" ", process.command())
+ System.lineSeparator();
hotspotPidFileName = String.format("hotspot_pid%d.log", oa.pid());