t4014-format-patch: do not assume 'test' is available as non-builtin
One test case used 'xargs test', which assumes that 'test' is available as external program. At least on MinGW it is not. Moreover, 'git format-patch' was invoked in a pipeline, but not as the last command. Rewrite the test case to catch breakage in 'git format-patch' as well. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
65c042d44d
commit
4fa80cf0e0
@ -549,9 +549,7 @@ test_expect_success 'options no longer allowed for format-patch' '
|
|||||||
test_cmp expect.check output'
|
test_cmp expect.check output'
|
||||||
|
|
||||||
test_expect_success 'format-patch --numstat should produce a patch' '
|
test_expect_success 'format-patch --numstat should produce a patch' '
|
||||||
git format-patch --numstat --stdout master..side |
|
git format-patch --numstat --stdout master..side > output &&
|
||||||
grep "^diff --git a/" |
|
test 6 = $(grep "^diff --git a/" output | wc -l)'
|
||||||
wc -l |
|
|
||||||
xargs test 6 = '
|
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user