-
-
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
Conversation
3e0bb73
to
6c6b9a5
Compare
Grinder_JCK output: 1906 |
} | ||
else { | ||
jvmOpts = System.getProperty("jvm.options"); | ||
} |
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.
This is not quite correct. We need to check jvm.options
as well.
if (System.getProperty("other.options") != null) {
jvmOpts += System.getProperty("other.options").trim() + " ";
}
if (System.getProperty("jvm.options") != null) {
jvmOpts += System.getProperty("jvm.options").trim() + " ";
}
jck/jtrunner/JavatestUtil.java
Outdated
@@ -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= ""; |
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.
add a space before =
|
||
// 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 comment
The reason will be displayed to describe this comment to others. Learn more.
aqa-tests/jck/jtrunner/JavatestUtil.java
Line 678 in 6c6b9a5
fileContent += "set jck.env.runtime.testExecute.otherOpts \" " + extraJvmOptions + " \"" + ";\n"; |
jck/jtrunner/JavaTestRunner.java
Outdated
@@ -168,8 +168,7 @@ public static void main(String args[]) throws Exception { | |||
} | |||
} | |||
} | |||
|
|||
jvmOpts = System.getProperty("jvm.options").trim() + " " + System.getProperty("other.opts"); | |||
jvmOpts = System.getProperty("other.options").trim() + " " + System.getProperty("jvm.options"); |
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.
Same as JavatestUtil. This needs to be updated
|
||
// 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 comment
The reason will be displayed to describe this comment to others. Learn more.
aqa-tests/jck/jtrunner/JavaTestRunner.java
Line 733 in 6c6b9a5
fileContent += "set jck.env.runtime.testExecute.otherOpts \" " + extraJvmOptions + " \"" + ";\n"; |
Grinder Output: |
3491a95
to
2f90818
Compare
@annaibm Please refer to https://github.com/eclipse-openj9/openj9/blob/master/CONTRIBUTING.md#commit-guidelines. We do not need to put code in the commit message. Also, could you update the description |
- Append user specified jvmOpts to exisitng jvm options - Added the null pointer check for other options and jvm options resolves : adoptium#4849 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
2f90818
to
716d47e
Compare
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.
Thanks @annaibm
Publicly visible grinder: https://ci.adoptium.net/view/Test_grinder/job/Grinder/8026 |
@smlambert could you review this PR when you have time? Thanks |
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.
thanks @annaibm !
Thank you @llxia and @smlambert! |
- Append user specified jvmOpts to exisitng jvm options - Added the null pointer check for other options and jvm options resolves : adoptium#4849 Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
Append user specified jvmOpts to exisitng jvm options
resolves : #4849