-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Output generic TEST_JDK_HOME in job.properties #3476
Conversation
Thanks Lan for the pointers! |
@JeromeJu Thanks for the update. We will need to test on xlinux, wins, mac and zos. I will take care of zos. Could you provide Grinder links for the rest of 3 platforms? |
Built Success linux: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/3865/ Failed with hudson.AbortException ^^^ Looking into this...
|
I noticed that for the windows_x86,
|
For windows, could you try with JDK11? |
I've added the conversion to windows path from cygpath at https://github.com/JeromeJu/aqa-tests/blob/3128_TEST_JDK_HOME/get.sh#L602-L604. However, I could not figure out why when the JenkinsfileBase reads it, the slashes are all gone as follow:
|
Could you try to add double quotes around TEST_JDK_HOME? |
Hi @llxia, I figured it's the redirect issue of backslash in the converted windows paths. I used Grinder links: Could you plz help rerun the zos as I could not find the params according to your previous job number? Thanks! |
Grinder links after updating to the specific if block for windows. |
My apologies..... I took the last change too brainless. win: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/4240/ |
zos: Grinder/22280 |
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.
LGTM
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.
LGTM
@@ -599,6 +599,12 @@ testJavaVersion() | |||
echo "=JAVA VERSION OUTPUT BEGIN=" | |||
${_java} -version | |||
echo "=JAVA VERSION OUTPUT END=" | |||
if [ "$os" = "windows" ]; then | |||
TEST_JDK_HOME=$(cygpath -w "${TEST_JDK_HOME}") | |||
echo -e "TEST_JDK_HOME=${TEST_JDK_HOME}" | sed 's/\\/\\\\/g' > ${TESTDIR}/job.properties |
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.
I don't think you want -e
here. Suppose ${TEST_JDK_HOME}
is C:\test\foo\bar
, -e
will map \t
to a tab which isn't likely to work.
All of a sudden the OpenJ9 testing is failing to run javac, at least on Windows, and this is what changed. |
Always output
TEST_JDK_HOME
into job.properties at get.sh, therefore in JenkinsfileBase theTEST_JDK_HOME
would always be read regardless the condition checks.Fixes: #3128
Sign off by: Jerome Ju jeromeqju@gmail.com