summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65c042d)
raw | patch | inline | side by side (parent: 65c042d)
author | Johannes Sixt <j6t@kdbg.org> | |
Mon, 23 Nov 2009 09:35:53 +0000 (10:35 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 Nov 2009 10:55:59 +0000 (02:55 -0800) |
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>
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>
t/t4014-format-patch.sh | patch | blob | history |
index 5689d590fd80e0c664000f573c64262b54243982..7f267f9ed1d888eeb4b3c780a048c7d09e29db3b 100755 (executable)
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
test_cmp expect.check output'
test_expect_success 'format-patch --numstat should produce a patch' '
- git format-patch --numstat --stdout master..side |
- grep "^diff --git a/" |
- wc -l |
- xargs test 6 = '
+ git format-patch --numstat --stdout master..side > output &&
+ test 6 = $(grep "^diff --git a/" output | wc -l)'
test_done