From: Junio C Hamano Date: Tue, 25 Mar 2008 06:07:08 +0000 (-0700) Subject: test_must_fail: 129 is a valid error code from usage() X-Git-Tag: v1.5.5-rc2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ee002fd3d875027f70729c0674282dc46fc5654;p=git.git test_must_fail: 129 is a valid error code from usage() When a git command is run under test_must_fail to make sure that the argument parser catches bogus command line, it exits with 129. We need to catch it as a valid "graceful error exit". Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 870b255f1..7c2a8ba77 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -300,7 +300,7 @@ test_expect_code () { test_must_fail () { "$@" - test $? -gt 0 -a $? -le 128 + test $? -gt 0 -a $? -le 129 } # test_cmp is a helper function to compare actual and expected output.