-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXTRA_OPTIONS are appended to exisiting JVM options #4861
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -51,7 +51,7 @@ public class JavatestUtil { | |||
private static String testExecutionType; | ||||
private static String withAgent; | ||||
private static String interactive; | ||||
private static String extraJvmOptions; | ||||
private static String extraJvmOptions = ""; | ||||
private static String concurrencyString; | ||||
private static String jckVersion; | ||||
private static String config; | ||||
|
@@ -177,7 +177,14 @@ public static void main(String args[]) throws Exception { | |||
} | ||||
} | ||||
|
||||
jvmOpts = System.getProperty("jvm.options").trim() + " " + System.getProperty("other.opts"); | ||||
String otherOptions = System.getProperty("other.options"); | ||||
String jvmOptions = System.getProperty("jvm.options"); | ||||
if (otherOptions != null) { | ||||
jvmOpts += otherOptions.trim() + " "; | ||||
} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not quite correct. We need to check
|
||||
if (jvmOptions != null) { | ||||
jvmOpts += jvmOptions.trim() + " "; | ||||
} | ||||
testFlag = System.getenv("TEST_FLAG"); | ||||
task = testArgs.get(TASK).trim(); | ||||
customJtx = testArgs.get(CUSTOM_JTX) == null ? "" : testArgs.get(CUSTOM_JTX); | ||||
|
@@ -419,7 +426,6 @@ private static boolean generateJTB() throws Exception { | |||
String robotAvailable = ""; | ||||
String hostname = ""; | ||||
String ipAddress = ""; | ||||
extraJvmOptions = jvmOpts; | ||||
|
||||
// Use escaped backslashes for paths on Windows | ||||
if (spec.contains("win")) { | ||||
|
@@ -664,13 +670,14 @@ private static boolean generateJTB() throws Exception { | |||
// Get any additional jvm options for specific tests. | ||||
extraJvmOptions += getTestSpecificJvmOptions(jckVersion, tests); | ||||
extraJvmOptions += suppressOutOfMemoryDumpOptions; | ||||
|
||||
|
||||
if (jckVersionInt > 11) { | ||||
extraJvmOptions += " --enable-preview -Xfuture "; | ||||
} | ||||
|
||||
// Add the JVM options supplied by the user plus those added in this method to the jtb file option. | ||||
fileContent += "set jck.env.runtime.testExecute.otherOpts \" " + extraJvmOptions + " \"" + ";\n"; | ||||
fileContent += "set jck.env.runtime.testExecute.otherOpts \" " + extraJvmOptions + " " + jvmOpts + " \"" + ";\n"; | ||||
|
||||
// Tests that need Display on OSX also require AWT_FORCE_HEADFUL=true | ||||
if (spec.contains("osx")) { | ||||
|
@@ -746,14 +753,15 @@ private static boolean generateJTB() throws Exception { | |||
} | ||||
|
||||
extraJvmOptions += suppressOutOfMemoryDumpOptions; | ||||
|
||||
|
||||
if (jckVersionInt > 11) { | ||||
extraJvmOptions += " --enable-preview -Xfuture "; | ||||
} | ||||
|
||||
// Add the JVM options supplied by the user plus those added in this method to the jtb file option. | ||||
if (!testExecutionType.equals("multijvm")) { | ||||
fileContent += "set jck.env.compiler.compRefExecute.otherOpts \" " + extraJvmOptions + " \"" + ";\n"; | ||||
fileContent += "set jck.env.compiler.compRefExecute.otherOpts \" " + extraJvmOptions + " " + jvmOpts + " \"" + ";\n"; | ||||
} | ||||
} | ||||
// Devtools settings | ||||
|
@@ -839,9 +847,10 @@ private static boolean generateJTB() throws Exception { | |||
// Get any additional jvm options for specific tests. | ||||
extraJvmOptions += getTestSpecificJvmOptions(jckVersion, tests); | ||||
extraJvmOptions += suppressOutOfMemoryDumpOptions; | ||||
|
||||
|
||||
// Add the JVM options supplied by the user plus those added in this method to the jtb file option. | ||||
fileContent += "set jck.env.devtools.refExecute.otherOpts \" " + extraJvmOptions + " \"" + ";\n"; | ||||
fileContent += "set jck.env.devtools.refExecute.otherOpts \" " + extraJvmOptions + " " + jvmOpts + " \"" + ";\n"; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aqa-tests/jck/jtrunner/JavatestUtil.java Line 678 in 6c6b9a5
|
||||
} | ||||
|
||||
// Only use default initial jtx exclude and disregard the rest of jck exclude lists | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aqa-tests/jck/jtrunner/JavaTestRunner.java
Line 733 in 6c6b9a5