summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-03 08:23:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-03 08:25:37 (GMT)
commit11d54b8b9a78d7236916883c09e165fdc3768f00 (patch)
tree0e023d137d0aad478b63499d60e4872fa0e372b9 /t
parent41ac414ea2bef81af94474cbef25a38868b4788e (diff)
downloadgit-11d54b8b9a78d7236916883c09e165fdc3768f00.zip
git-11d54b8b9a78d7236916883c09e165fdc3768f00.tar.gz
git-11d54b8b9a78d7236916883c09e165fdc3768f00.tar.bz2
test: reword the final message of tests with known breakages
When we have known breakages, we still said "passed all N test(s)", which was a bit funny. This rewords it to read "passed all remaining N test(s)" in such a case. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 9a3c0b4..da47bd7 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -295,6 +295,9 @@ test_done () {
if test "$test_broken" != 0
then
say_color error "still have $test_broken known breakage(s)"
+ msg="remaining $(($test_count-$test_broken)) test(s)"
+ else
+ msg="$test_count test(s)"
fi
case "$test_failure" in
0)
@@ -306,11 +309,11 @@ test_done () {
# The Makefile provided will clean this test area so
# we will leave things as they are.
- say_color pass "passed all $test_count test(s)"
+ say_color pass "passed all $msg"
exit 0 ;;
*)
- say_color error "failed $test_failure among $test_count test(s)"
+ say_color error "failed $test_failure among $msg"
exit 1 ;;
esac