Fix a few issues in "run_wasi_tests.sh: provide stdin by ourselves" (#2582)

Apply "provide stdin by ourselves" to the aot case and check the correct exit code.
This commit is contained in:
YAMAMOTO Takashi 2023-09-23 11:28:18 +09:00 committed by GitHub
parent 71e07a7fa4
commit 363f08975b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,8 @@ run_aot_tests () {
expected=$(jq .exit_code ${test_json})
fi
${iwasm} $test_aot
ret=${PIPESTATUS[0]}
python3 ${THIS_DIR}/pipe.py | ${iwasm} $test_aot
ret=${PIPESTATUS[1]}
echo "expected=$expected, actual=$ret"
if [[ $expected != "" ]] && [[ $expected != $ret ]];then
@ -75,7 +75,7 @@ if [[ $MODE != "aot" ]];then
${THREAD_INTERNAL_TESTS} \
${LIB_SOCKET_TESTS} \
ret=${PIPESTATUS[0]}
ret=${PIPESTATUS[1]}
TEST_RUNTIME_EXE="${IWASM_CMD_STRESS}" python3 test-runner/wasi_test_runner.py \
-r adapters/wasm-micro-runtime.py \