diff options
author | Adam Spiers <git@adamspiers.org> | 2012-12-16 18:28:09 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-16 12:01:58 -0800 |
commit | 5e5c006eb713b785c6761c32b907e02abc277f9a (patch) | |
tree | 77d8eb3a447bfd383e5ecaf25c77646c4d52ebc8 /t/test-lib.sh | |
parent | b0576a6a6dd3b311391090b2ce15f991ac9914cf (diff) | |
download | git-5e5c006eb713b785c6761c32b907e02abc277f9a.tar.gz |
tests: test number comes first in 'not ok $count - $message'
The old output to say "not ok - 1 messsage" was working by accident
only because the test numbers are optional in TAP.
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index f8e3733ea0..03b86b821d 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -268,7 +268,7 @@ test_ok_ () { test_failure_ () { test_failure=$(($test_failure + 1)) - say_color error "not ok - $test_count $1" + say_color error "not ok $test_count - $1" shift echo "$@" | sed -e 's/^/# /' test "$immediate" = "" || { GIT_EXIT_OK=t; exit 1; } |