Browse Source

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>
maint
Jeff King 17 years ago committed by Junio C Hamano
parent
commit
53a5b443b4
  1. 3
      t/t4020-diff-external.sh
  2. BIN
      t/t4020/diff.NUL

3
t/t4020-diff-external.sh

@ -103,7 +103,8 @@ echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > 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

Binary file not shown.
Loading…
Cancel
Save