mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-21 15:30:15 -05: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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user