wamr-test-suites: Save .wasm/.aot file to the report dir if test failed (#1937)

This commit is contained in:
Huang Qi
2023-02-06 11:04:28 +08:00
committed by GitHub
parent 42ced88424
commit 2c8375ee67
3 changed files with 30 additions and 4 deletions

View File

@ -442,9 +442,12 @@ function spec_test()
if [[ ${ENABLE_QEMU} == 1 ]]; then
ARGS_FOR_SPEC_TEST+="--qemu "
ARGS_FOR_SPEC_TEST+="--qemu-firmware ${QEMU_FIRMWARE}"
ARGS_FOR_SPEC_TEST+="--qemu-firmware ${QEMU_FIRMWARE} "
fi
# set log directory
ARGS_FOR_SPEC_TEST+="--log ${REPORT_DIR}"
cd ${WORK_DIR}
echo "python3 ./all.py ${ARGS_FOR_SPEC_TEST} | tee -a ${REPORT_DIR}/spec_test_report.txt"
python3 ./all.py ${ARGS_FOR_SPEC_TEST} | tee -a ${REPORT_DIR}/spec_test_report.txt