aboutsummaryrefslogtreecommitdiff
path: root/t/t0000-basic.sh
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2012-12-16 18:28:09 +0000
committerJunio C Hamano <gitster@pobox.com>2012-12-16 12:01:58 -0800
commit5e5c006eb713b785c6761c32b907e02abc277f9a (patch)
tree77d8eb3a447bfd383e5ecaf25c77646c4d52ebc8 /t/t0000-basic.sh
parentb0576a6a6dd3b311391090b2ce15f991ac9914cf (diff)
downloadgit-5e5c006eb713b785c6761c32b907e02abc277f9a.tar.gz
git-5e5c006eb713b785c6761c32b907e02abc277f9a.tar.xz
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/t0000-basic.sh')
-rwxr-xr-xt/t0000-basic.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index ae6a3f077..c6b42deef 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -167,13 +167,13 @@ test_expect_success 'tests clean up even on failures' "
! test -s err &&
! test -f \"trash directory.failing-cleanup/clean-after-failure\" &&
sed -e 's/Z$//' -e 's/^> //' >expect <<-\\EOF &&
- > not ok - 1 tests clean up even after a failure
+ > not ok 1 - tests clean up even after a failure
> # Z
> # touch clean-after-failure &&
> # test_when_finished rm clean-after-failure &&
> # (exit 1)
> # Z
- > not ok - 2 failure to clean up causes the test to fail
+ > not ok 2 - failure to clean up causes the test to fail
> # Z
> # test_when_finished \"(exit 2)\"
> # Z