mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
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>
This commit is contained in:
parent
89815cab95
commit
364b852352
1 changed files with 2 additions and 2 deletions
|
@ -50,10 +50,10 @@ test_expect_success 'recorded preimage' "grep ======= $rr/preimage"
|
||||||
test_expect_success 'no postimage or thisimage yet' \
|
test_expect_success 'no postimage or thisimage yet' \
|
||||||
"test ! -f $rr/postimage -a ! -f $rr/thisimage"
|
"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) &&
|
cnt=$(sed -ne "/^<<<<<<</,/^>>>>>>>/p" $rr/preimage | wc -l) &&
|
||||||
test "$cnt" = 10
|
test $cnt = 10
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue