Skip to content

Commit d0ee277

Browse files
newrengitster
authored andcommitted
test-lib: reduce verbosity of skipped tests
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2ba31eb commit d0ee277

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

t/test-lib.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,6 @@ test_skip () {
10621062
" <skipped message=\"$message\" />"
10631063
fi
10641064

1065-
say_color skip >&3 "skipping test: $@"
10661065
say_color skip "ok $test_count # skip $1 ($skipped_reason)"
10671066
: true
10681067
;;

0 commit comments

Comments
 (0)