summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8cc3930)
raw | patch | inline | side by side (parent: 8cc3930)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Jul 2005 02:09:34 +0000 (19:09 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sat, 23 Jul 2005 03:34:16 +0000 (20:34 -0700) |
The output from a failure case had the test description message
and the first line of the actual test script concatenated on the
same line, which was ugly. Correct the output routine a bit to
make it more readable.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
and the first line of the actual test script concatenated on the
same line, which was ugly. Correct the output routine a bit to
make it more readable.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/test-lib.sh | patch | blob | history |
diff --git a/t/test-lib.sh b/t/test-lib.sh
index d3f71d1932310197219155b426687d155bf63c5b..f97f8eb395299f17873f6e6587db235e583cb45e 100755 (executable)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
test_failure_ () {
test_count=$(expr "$test_count" + 1)
test_failure=$(expr "$test_failure" + 1);
- say "FAIL $test_count: $@"
+ say "FAIL $test_count: $1"
+ shift
+ echo "$@" | sed -e 's/^/ /'
test "$immediate" == "" || exit 1
}