Skip to content

Commit 8ee002f

Browse files
committed
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 <[email protected]>
1 parent 5b67b8e commit 8ee002f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ test_expect_code () {
300300

301301
test_must_fail () {
302302
"$@"
303-
test $? -gt 0 -a $? -le 128
303+
test $? -gt 0 -a $? -le 129
304304
}
305305

306306
# test_cmp is a helper function to compare actual and expected output.

0 commit comments

Comments
 (0)