From: Ralph Corderoy Date: Wed, 17 May 2017 11:45:26 +0000 (+0100) Subject: test/common.sh.in: Clarify test name in failure message. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/00d3bf7d5d3a78bebb43bb102e3d43bf41fc9369?ds=sidebyside test/common.sh.in: Clarify test name in failure message. Some test names don't stand out as that when suffixed with `failed' amidst all the other output. Change `foo failed' to `first test failure: foo' instead. Also makes clear there's possibly other tests that failed later. --- diff --git a/test/common.sh.in b/test/common.sh.in index d0c446de..07b01f3f 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -311,7 +311,7 @@ cleanup() { #### 1) Set test name before running the test, use start_test(). #### 2) Unset upon successful completion, use finish_test(). if test -n "$nmh_tests_testname"; then - echo $nmh_tests_testname failed + echo "first test failure: $nmh_tests_testname" fi #### Exit with non-zero status if failure. Failure is defined as either