t4012: Make --shortstat test more robust

The --shortstat test depends on the same scenario as the --stat test. Use the part of the same expected result for the --stat test to avoid duplicating it manually. Signed-off-by: Alexander Strasser <eclipse7@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alexander Strasser committed Jul 16, 2012 at 22:45 UTC 216f25f65fe20a93d4c8264b335718a8888d007e
1 file changed +2 -2
t/t4012-diff-binary.sh
+2 -2
@@ -38,9 +38,9 @@ test_expect_success 'apply --stat output for binary file change' '
38 '
39
40 test_expect_success 'diff --shortstat output for binary file change' '
41 - echo " 4 files changed, 2 insertions(+), 2 deletions(-)" >expected &&
41 + tail -n 1 expected >expect &&
42 git diff --shortstat >current &&
43 - test_i18ncmp expected current
43 + test_i18ncmp expect current
44 '
45
46 test_expect_success 'diff --shortstat output for binary file change only' '