test-lib: TAP compliance for skipping tests on request
authorMichael J Gruber <git@drmicha.warpmail.net>
Mon, 12 Jul 2010 10:33:49 +0000 (12:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jul 2010 14:53:08 +0000 (07:53 -0700)
Make the output TAP compliant for tests skipped on request (GIT_SKIP_TESTS).

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index bc0656457baf2d6e2361fb4a347b2fad0bbb3718..db8371cb170c5924512a5626681f485ea3cf6884 100644 (file)
@@ -396,7 +396,7 @@ test_skip () {
        case "$to_skip" in
        t)
                say_color skip >&3 "skipping test: $@"
-               say_color skip "ok $test_count: # skip $1"
+               say_color skip "ok $test_count # skip $1"
                : true
                ;;
        *)
@@ -833,7 +833,7 @@ do
        case "$this_test" in
        $skp)
                say_color skip >&3 "skipping test $this_test altogether"
-               say_color skip "skip all tests in $this_test"
+               skip_all="skip all tests in $this_test"
                test_done
        esac
 done