summaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-08-22 21:34:11 +0200
committerJunio C Hamano <gitster@pobox.com>2019-08-22 21:34:11 +0200
commit8ae7a46c4d74d14defe31cb5421787bc22b6b462 (patch)
treed43fadbbb18f84eee2feee7b3b769e42506a69c5 /t/test-lib-functions.sh
parentMerge branch 'sg/commit-graph-validate' (diff)
parenttests: show the test name and number at the start of verbose output (diff)
downloadgit-8ae7a46c4d74d14defe31cb5421787bc22b6b462.tar.xz
git-8ae7a46c4d74d14defe31cb5421787bc22b6b462.zip
Merge branch 'sg/show-failed-test-names'
The first line of verbose output from each test piece now carries the test name and number to help scanning with eyeballs. * sg/show-failed-test-names: tests: show the test name and number at the start of verbose output t0000-basic: use realistic test script names in the verbose tests
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index e0b3f28d3a..87bf3a2287 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -580,7 +580,7 @@ test_expect_failure () {
export test_prereq
if ! test_skip "$@"
then
- say >&3 "checking known breakage: $2"
+ say >&3 "checking known breakage of $TEST_NUMBER.$test_count '$1': $2"
if test_run_ "$2" expecting_failure
then
test_known_broken_ok_ "$1"
@@ -600,7 +600,7 @@ test_expect_success () {
export test_prereq
if ! test_skip "$@"
then
- say >&3 "expecting success: $2"
+ say >&3 "expecting success of $TEST_NUMBER.$test_count '$1': $2"
if test_run_ "$2"
then
test_ok_ "$1"