From 695b3a965b856b2bffa5809d4bb71b9d827c392c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 5 Aug 2019 11:52:16 +1000 Subject: [PATCH] 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 --- ctdb/tests/run_tests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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" -- 2.47.2