From 637ab29b86533c7ce65a615fd445d163a2c57dc9 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Mon, 12 Jul 2010 12:33:49 +0200 Subject: test-lib: TAP compliance for skipping tests on request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the output TAP compliant for tests skipped on request (GIT_SKIP_TESTS). Signed-off-by: Michael J Gruber Acked-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano diff --git a/t/test-lib.sh b/t/test-lib.sh index bc06564..db8371c 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -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 -- cgit v0.10.2-6-g49f6