]> diplodocus.org Git - nmh/commitdiff
test/common.sh.in: Clarify test name in failure message.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 17 May 2017 11:45:26 +0000 (12:45 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 17 May 2017 11:45:26 +0000 (12:45 +0100)
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.

test/common.sh.in

index d0c446d..07b01f3 100644 (file)
@@ -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