From: Johannes Schindelin Date: Mon, 11 Jul 2016 13:11:37 +0000 (+0200) Subject: mingw: fix the shortlog --output= test X-Git-Tag: v2.10.0-rc0~111^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bac233f2c28428c3e2c5279910bc4c027cd0b540;p=git mingw: fix the shortlog --output= test Adjust t4201 to pass on Windows; a couple of test cases need to be skipped on Windows which leads to a different shortlog than on Linux. Let's just fix that by limiting the shortlog's commit range to traverse only one commit: that guarantees that it does not matter how many test cases were skipped. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index bd699e11f1..ae08b57712 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -185,9 +185,9 @@ test_expect_success 'shortlog with revision pseudo options' ' ' test_expect_success 'shortlog with --output=' ' - git shortlog --output=shortlog master >output && + git shortlog --output=shortlog -1 master >output && test ! -s output && - test_line_count = 7 shortlog + test_line_count = 3 shortlog ' test_done