aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-08-06 21:19:24 +0000
committerJunio C Hamano <gitster@pobox.com>2010-08-18 12:42:04 -0700
commit71ce42c0a6b3b4c75836cf074fcdf289633f41b4 (patch)
treeb1e500b0e74503bc49792ea9ed4d162462792d4e /t
parent93a5724613861e6cd85964c85f2fa0891caab258 (diff)
downloadgit-71ce42c0a6b3b4c75836cf074fcdf289633f41b4.tar.gz
git-71ce42c0a6b3b4c75836cf074fcdf289633f41b4.tar.xz
test-lib: Print missing prerequisites in test output
Change the test output to print needed prerequisites as part of the TAP. This makes it easy to see at a glance why a test was skipped. Before: ok 7 # skip <message> ok 9 # skip <message> After: ok 7 # skip <message> (prereqs: DONTHAVEIT) ok 9 # skip <message> (prereqs: HAVEIT,DONTHAVEIT) This'll also be useful for smoke testing output, where the developer reading the output may not be familiar with the system where tests are being skipped. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 0b9969ccf..9ded0eee1 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -403,7 +403,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 (prereqs: $prereq)"
: true
;;
*)