Skip to content

Commit

Permalink
fix testenvSettings.sh (#5306)
Browse files Browse the repository at this point in the history
fix: #5305 and #5301

Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia authored May 9, 2024
1 parent 83bec27 commit fff175b
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions scripts/testenv/testenvSettings.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
#!/usr/bin/env bash
set +x
set -e

if [[ $USE_TESTENV_PROPERTIES == true ]]; then
if [ $USE_TESTENV_PROPERTIES = true ]; then
testenv_file="./testenv/testenv.properties"
if [[ "$PLATFORM" == *"zos"* ]]; then
testenv_file="./testenv/testenv_zos.properties"
fi
if [[ "$PLATFORM" == *"arm"* ]] && [[ "$JDK_VERSION" == "8" ]]; then
testenv_file="./testenv/testenv_arm32.properties"
fi
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
while read line; do
export $line
done <$testenv_file
if [[ $JDK_IMPL == "openj9" ]] || [[ $JDK_IMPL == "ibm" ]]; then
if [ $JDK_IMPL = "openj9" ] || [ $JDK_IMPL = "ibm" ]; then
repo=JDK${JDK_VERSION}_OPENJ9_REPO
branch=JDK${JDK_VERSION}_OPENJ9_BRANCH

Expand Down

0 comments on commit fff175b

Please sign in to comment.