t4020: don't use grep -a

Solaris /usr/bin/grep doesn't understand "-a". In this case
we can just include the expected output with the test, which
is a better test anyway.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2008-03-12 17:37:37 -04:00 committed by Junio C Hamano
parent 82ebb0b6ec
commit 53a5b443b4
2 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file
test_expect_success 'force diff with "diff"' '
echo >.gitattributes "file diff" &&
git diff | grep -a second
git diff >actual &&
test_cmp ../t4020/diff.NUL actual
'
test_done

BIN
t/t4020/diff.NUL Normal file

Binary file not shown.