From: Martin Schwenke Date: Mon, 5 Aug 2019 01:52:16 +0000 (+1000) Subject: ctdb-tests: Don't print summary on failure if -e option is specified X-Git-Tag: tdb-1.4.2~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695b3a965b856b2bffa5809d4bb71b9d827c392c;p=thirdparty%2Fsamba.git ctdb-tests: Don't print summary on failure if -e option is specified If there is a failure it will always be the last test run. Don't obscure this by following it with a summary. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index 0caec8f7c04..2f692c1b90b 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -357,10 +357,12 @@ done rm -f "$tf" if $with_summary ; then - echo - cat "$sf" - echo - echo "${tests_passed}/${tests_total} tests passed" + if [ $status -eq 0 ] || ! $exit_on_fail ; then + echo + cat "$sf" + echo + echo "${tests_passed}/${tests_total} tests passed" + fi fi rm -f "$sf"