]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-lib: reduce verbosity of skipped tests
authorElijah Newren <newren@gmail.com>
Sun, 18 Oct 2020 00:23:47 +0000 (00:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Oct 2020 20:18:38 +0000 (13:18 -0700)
When using the --run flag to run just two or three tests from a test
file which contains several dozen tests, having every skipped test print
out dozens of lines of output for the test code for that skipped test
(in addition to the TAP output line) adds up to hundreds or thousands of
lines of irrelevant output that make it very hard to fish out the
relevant results you were looking for.  Simplify the output for skipped
tests to remove this extra output, leaving only the TAP output line
(i.e. the line reading "ok <number> # skip <test-description>", which
already mentions that the test was "skip"ped).

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index 72b88dffa119d90a6897f1dc6943d51d59837ed7..f68bca745aa8b89b490ff679b2aa2c3003b92e23 100644 (file)
@@ -1062,7 +1062,6 @@ test_skip () {
                                "      <skipped message=\"$message\" />"
                fi
 
-               say_color skip >&3 "skipping test: $@"
                say_color skip "ok $test_count # skip $1 ($skipped_reason)"
                : true
                ;;