Skip to content

Commit

Permalink
test-lib: TAP compliance for skipping tests on request
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Jul 12, 2010
1 parent 47e67d4 commit 637ab29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 637ab29

Please sign in to comment.