-
-
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
fix testenvSettings.sh #5306
fix testenvSettings.sh #5306
Conversation
|
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
@keithc-ca can you pls review this. |
arm_linux JDK11: https://ci.adoptium.net/view/Test_grinder/job/Grinder/9905/console
|
scripts/testenv/testenvSettings.sh
Outdated
case "$PLATFORM" in | ||
*zos*) | ||
testenv_file="./testenv/testenv_zos.properties" | ||
;; | ||
*arm*) | ||
if [ "$JDK_VERSION" = "8" ]; then |
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 yields different behavior for a platform matching both *zos*
and *arm*
. I'm not sure we have any of those, but to be equivalent, we would express this as two sequential case
statements.
scripts/testenv/testenvSettings.sh
Outdated
testenv_file="./testenv/testenv.properties" | ||
fi | ||
;; | ||
*) | ||
testenv_file="./testenv/testenv.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.
Rather than repeat the default, perhaps it should be set at the beginning like the previous code.
scripts/testenv/testenvSettings.sh
Outdated
;; | ||
*) | ||
testenv_file="./testenv/testenv.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.
nit: This should be indented the same as lines 16 and 18.
a2cf062
to
9423aa1
Compare
scripts/testenv/testenvSettings.sh
Outdated
case "$PLATFORM" in | ||
*zos*) | ||
testenv_file="./testenv/testenv_zos.properties" | ||
;; | ||
*arm*) | ||
case "$JDK_VERSION" in | ||
"8") | ||
testenv_file="./testenv/testenv_arm32.properties" | ||
;; | ||
esac | ||
;; | ||
esac |
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 isn't what I meant by "two sequential case statements" (this is just more verbose than the earlier version).
What I meant was:
testenv_file="./testenv/testenv.properties"
case "$PLATFORM" in
*zos*)
testenv_file="./testenv/testenv_zos.properties"
;;
*)
;;
esac
case "$PLATFORM" in
*arm*)
if [ "$JDK_VERSION" = "8" ]; then
testenv_file="./testenv/testenv_arm32.properties"
fi
;;
*)
;;
esac
Again, this is only relevant for platforms matching *arm*zos*
or *zos*arm*
(which may never materialize).
fix: adoptium#5305 and adoptium#5301 Signed-off-by: Lan Xia <[email protected]>
fix: adoptium#5305 and adoptium#5301 Signed-off-by: Lan Xia <[email protected]>
fix: #5305 and #5301 Signed-off-by: Lan Xia <[email protected]>
tyvm! |
fix: #5305 and #5301