diff options
author | Peter Gal <pgal.u-szeged@partner.samsung.com> | 2017-12-05 16:50:39 +0100 |
---|---|---|
committer | yichoi <duddlf.choi@samsung.com> | 2017-12-06 13:16:25 +0900 |
commit | a8a6122a93f24a80c77cb2eda1f04a0fe49a39af (patch) | |
tree | 578b86ba0a0f2c04cff15b782bc71f0b7dd8adbd | |
parent | e964393abe766ef885a184d122ca6806dc7e5c69 (diff) |
Force python2 when running test262
The test262 python script is not python 3 compatible
so we force it to be executed with python2.
Additionally print out the reason if the execution
failed.
JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
-rwxr-xr-x | tools/runners/run-test-suite-test262.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/runners/run-test-suite-test262.sh b/tools/runners/run-test-suite-test262.sh index 3626516c..7a990f05 100755 --- a/tools/runners/run-test-suite-test262.sh +++ b/tools/runners/run-test-suite-test262.sh @@ -56,9 +56,16 @@ rm -f "${PATH_TO_TEST262}/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T6.js" echo "Starting test262 testing for ${ENGINE}. Running test262 may take a several minutes." -"${PATH_TO_TEST262}"/tools/packaging/test262.py --command "${TIMEOUT_CMD} ${TIMEOUT} ${ENGINE}" \ - --tests="${PATH_TO_TEST262}" --summary \ - &> "${REPORT_PATH}" +python2 "${PATH_TO_TEST262}"/tools/packaging/test262.py --command "${TIMEOUT_CMD} ${TIMEOUT} ${ENGINE}" \ + --tests="${PATH_TO_TEST262}" --summary \ + &> "${REPORT_PATH}" +TEST262_EXIT_CODE=$? +if [ $TEST262_EXIT_CODE -ne 0 ] +then + echo -e "\nFailed to run test2626\n" + echo "$0: see ${REPORT_PATH} for details about failures" + exit $TEST262_EXIT_CODE +fi grep -A3 "=== Summary ===" "${REPORT_PATH}" |