mirror of
https://github.com/git/git.git
synced 2024-11-18 20:53:55 +01:00
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 <gitster@pobox.com>
This commit is contained in:
parent
5b67b8e2d4
commit
8ee002fd3d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user