aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-02-26 19:36:49 +0200
committerDavid Bremner <david@tethera.net>2017-03-09 08:47:57 -0400
commit740f3296b86ab8e18a6da4949b0db4139298202b (patch)
tree30222dadd0b2cbc5977b424acf57281ef177e500
parent4e872c64e1ab63f35edfd4d0a6500cc24b62fe0d (diff)
test: print test description also for failing known broken tests
With the test description, the user can see the test script name, and debug with that alone.
-rw-r--r--test/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 02634ac1..79dc8419 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -851,12 +851,12 @@ test_ok_ () {
}
test_failure_ () {
+ print_test_description
if test "$test_subtest_known_broken_" = "t"; then
test_known_broken_failure_ "$@"
return
fi
test_failure=$(($test_failure + 1))
- print_test_description
test_failure_message_ "FAIL" "$test_subtest_name" "$@"
test "$immediate" = "" || { GIT_EXIT_OK=t; exit 1; }
return 1