[TESTS] Improve script robustness (#2893)
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Mon, 25 Mar 2019 20:44:36 +0000 (20:44 +0000)
committerTianqi Chen <tqchen@users.noreply.github.com>
Mon, 25 Mar 2019 20:44:35 +0000 (13:44 -0700)
commit23aa24cf17e85befdc9a4f2360685b506c8a5c2b
tree8f215f584d9d16c6b99c53c7c3ad06d5dd37adf7
parent4bf37e31a5dd42cb8485defd1e170a53cac5d46c
[TESTS] Improve script robustness (#2893)

A number of test scripts use the '|| exit 1' idiom.  This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded.  This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
tests/scripts/task_cpp_unittest.sh
tests/scripts/task_java_unittest.sh
tests/scripts/task_python_docs.sh
tests/scripts/task_python_frontend.sh
tests/scripts/task_python_integration.sh
tests/scripts/task_python_topi.sh
tests/scripts/task_python_unittest.sh
tests/scripts/task_python_vta.sh
tests/scripts/task_verilog_test.sh
tests/scripts/task_web_test.sh