From: Martin Schwenke Date: Wed, 18 Sep 2019 02:31:10 +0000 (+1000) Subject: ctdb-tests: Add a special failure code when a test error occurs X-Git-Tag: talloc-2.3.1~485 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=473a6fed11a2e63d9cd557f63fdb646bd040deda ctdb-tests: Add a special failure code when a test error occurs Use it when a test is not executable. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index 8994c6d801e..3c13df36f4c 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -129,7 +129,7 @@ ctdb_test_run () status=$? else echo "TEST IS NOT EXECUTABLE" - status=1 + status=99 fi tests_total=$((tests_total + 1)) @@ -140,6 +140,10 @@ ctdb_test_run () interp="PASSED" tests_passed=$((tests_passed + 1)) ;; + 99) + interp="ERROR" + tests_failed=$((tests_failed + 1)) + ;; 124) interp="TIMEDOUT" tests_failed=$((tests_failed + 1)) diff --git a/ctdb/tests/scripts/common.sh b/ctdb/tests/scripts/common.sh index 1165fcadb47..1efb1f34e01 100644 --- a/ctdb/tests/scripts/common.sh +++ b/ctdb/tests/scripts/common.sh @@ -28,7 +28,7 @@ ctdb_test_error () if [ $# -gt 0 ] ; then echo "$*" fi - exit 1 + exit 99 } ctdb_test_fail ()