Fix t4200-rerere for white-space from "wc -l"
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>
Brian Gernhardt committed
Apr 4, 2007 at 15:39 UTC
364b8523529163ffeeb71521239a18ac1f550512
1 file changed
+2
-2
t/t4200-rerere.sh
+2
-2
@@ -50,10 +50,10 @@ test_expect_success 'recorded preimage' "grep ======= $rr/preimage"
50
test_expect_success 'no postimage or thisimage yet' \
51
"test ! -f $rr/postimage -a ! -f $rr/thisimage"
52
53
-test_expect_success 'preimage have right number of lines' '
53
+test_expect_success 'preimage has right number of lines' '
54
55
cnt=$(sed -ne "/^<<<<<<</,/^>>>>>>>/p" $rr/preimage | wc -l) &&
56
- test "$cnt" = 10
56
+ test $cnt = 10
57
58
'
59