Skip to content

Commit 170ae35

Browse files
authored
test_wamr.sh: Allow using test script on different platforms (#3098)
The `^^` for uppercase is not widely supported, e.g. not working on some MacOS M1.
1 parent 7f8e213 commit 170ae35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/wamr-test-suites/test_wamr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ do
119119
;;
120120
m)
121121
echo "set compile target of wamr" ${OPTARG}
122-
TARGET=${OPTARG^^} # set target to uppercase if input x86_32 or x86_64 --> X86_32 and X86_64
122+
TARGET=$(echo "$OPTARG" | tr '[a-z]' '[A-Z]') # set target to uppercase if input x86_32 or x86_64 --> X86_32 and X86_64
123123
;;
124124
w)
125125
echo "enable WASI threads"

0 commit comments

Comments
 (0)