diff options
-rwxr-xr-x | ctdb/tests/scripts/run_tests | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ctdb/tests/scripts/run_tests b/ctdb/tests/scripts/run_tests index 719a16e52a4..171e8197f72 100755 --- a/ctdb/tests/scripts/run_tests +++ b/ctdb/tests/scripts/run_tests @@ -175,13 +175,16 @@ run_one_test () ctdb_test_run "$_f" | tee "$tf" | show_progress status=$? + if [ $status -eq 0 ] ; then + tests_passed=$(($tests_passed + 1)) + else + tests_failed=$(($tests_failed + 1)) + fi if $with_summary ; then if [ $status -eq 0 ] ; then - tests_passed=$(($tests_passed + 1)) _t=" PASSED " else _t="*FAILED*" - tests_failed=$(($tests_failed + 1)) fi if $with_desc ; then desc=$(tail -n +4 $tf | head -n 1) |