diff --git a/tests/runtime/common/fortest/verify.sh b/tests/runtime/common/fortest/verify.sh index de8385ae6f9be128be58f086f18d33a91fbbec45..1227b3124d9da39ca69bd3d9685e117321c2e3be 100755 --- a/tests/runtime/common/fortest/verify.sh +++ b/tests/runtime/common/fortest/verify.sh @@ -31,4 +31,4 @@ else echo -e "actual:"$actual echo -e "\033[31mfortest test failed\033[0m" exit 1; -fi \ No newline at end of file +fi diff --git a/tests/runtime/common/helloworld/verify.sh b/tests/runtime/common/helloworld/verify.sh index 6a9add2a47a574d035b18f6d80570e22408d19d4..e1333a76342dc4c5a661b3cb1a6ea1278aa38a60 100755 --- a/tests/runtime/common/helloworld/verify.sh +++ b/tests/runtime/common/helloworld/verify.sh @@ -12,4 +12,4 @@ else echo -e "actual:"$actual echo -e "\033[31mhelloworld test failed\033[0m" exit 1; -fi \ No newline at end of file +fi diff --git a/tests/runtime/common/module/verify.sh b/tests/runtime/common/module/verify.sh index 83cb247aa49734eabcb83d841e04c35c33fb506a..34f3669891ec6b0f24735f658b5baaaa0bcd7e24 100755 --- a/tests/runtime/common/module/verify.sh +++ b/tests/runtime/common/module/verify.sh @@ -12,4 +12,4 @@ else echo -e "actual:"$actual echo -e "\033[31m module test failed\033[0m" exit 1; -fi \ No newline at end of file +fi diff --git a/tests/runtime/common/recursive_array/verify.sh b/tests/runtime/common/recursive_array/verify.sh index 51a7771b124737c49ae45595d095eb47c22871bd..26164ef81c735bff54866d2963435fd2851561f0 100644 --- a/tests/runtime/common/recursive_array/verify.sh +++ b/tests/runtime/common/recursive_array/verify.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved. +# Copyright (c) Huawei Technologies Co., Ltd. 2022-2024. All rights reserved. set -eo pipefail @@ -8,7 +8,7 @@ expected=" 2,1,4,,5,1,3 4,2,1,,1,3,5" -actual=`cat $1` +actual=$(cat "$1") if [[ "$actual" == "$expected" ]];then exit 0; else diff --git a/tests/runtime/common/spread_primitives/verify.sh b/tests/runtime/common/spread_primitives/verify.sh index bf81e70f49f43f98116d7e4a8b24afe5206e7292..09cc29ed06fb30efb1a5740fdf2a8e9dc0527b51 100644 --- a/tests/runtime/common/spread_primitives/verify.sh +++ b/tests/runtime/common/spread_primitives/verify.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved. +# Copyright (c) Huawei Technologies Co., Ltd. 2022-2024. All rights reserved. set -eo pipefail @@ -26,7 +26,7 @@ s TypeError: null is not iterable TypeError: undefined is not iterable" -actual=`cat $1` +actual=$(cat "$1") if [[ "$actual" == "$expected" ]];then exit 0; else