summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 89815ca)
raw | patch | inline | side by side (parent: 89815ca)
author | Brian Gernhardt <benji@silverinsanity.com> | |
Wed, 4 Apr 2007 19:39:05 +0000 (15:39 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 4 Apr 2007 20:11:33 +0000 (13:11 -0700) |
On OS X, wc outputs 6 spaces before the number of lines, so the test
expecting the string "10" failed. Do not quote $cmd to strip away
the problematic whitespace as other tests do.
Also fix the grammar of the test name while making changes to it.
There's only one preimage, so it's "has", not "have".
Signed-off-by: Junio C Hamano <junkio@cox.net>
expecting the string "10" failed. Do not quote $cmd to strip away
the problematic whitespace as other tests do.
Also fix the grammar of the test name while making changes to it.
There's only one preimage, so it's "has", not "have".
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t4200-rerere.sh | patch | blob | history |
diff --git a/t/t4200-rerere.sh b/t/t4200-rerere.sh
index 8b611bbea210551d86016b53718ba1af313f1353..bc878d750dd526b38220bb6ab040c793946805a7 100755 (executable)
--- a/t/t4200-rerere.sh
+++ b/t/t4200-rerere.sh
test_expect_success 'no postimage or thisimage yet' \
"test ! -f $rr/postimage -a ! -f $rr/thisimage"
-test_expect_success 'preimage have right number of lines' '
+test_expect_success 'preimage has right number of lines' '
cnt=$(sed -ne "/^<<<<<<</,/^>>>>>>>/p" $rr/preimage | wc -l) &&
- test "$cnt" = 10
+ test $cnt = 10
'