summaryrefslogtreecommitdiff
path: root/test-subprocess.c
diff options
context:
space:
mode:
authorLibravatar John Keeping <john@keeping.me.uk>2016-02-21 17:32:21 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-23 15:00:12 -0800
commit0be43dedbc03139b9d9d0bc71deefc4d7f47296d (patch)
tree93257b5be7adf890d0c52ba55f1484f216339d7b /test-subprocess.c
parentGit 2.4.10 (diff)
downloadtgif-0be43dedbc03139b9d9d0bc71deefc4d7f47296d.tar.xz
t8005: avoid grep on non-ASCII data
GNU grep 2.23 detects the input used in this test as binary data so it does not work for extracting lines from a file. We could add the "-a" option to force grep to treat the input as text, but not all implementations support that. Instead, use sed to extract the desired lines since it will always treat its input as text. While touching these lines, modernize the test style to avoid hiding the exit status of "git blame" and remove a space following a redirection operator. Also swap the order of the expected and actual output files given to test_cmp; we compare expect and actual to show how actual output differs from what is expected. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-subprocess.c')
0 files changed, 0 insertions, 0 deletions