summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b67b8e)
raw | patch | inline | side by side (parent: 5b67b8e)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 25 Mar 2008 06:07:08 +0000 (23:07 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Mar 2008 19:13:39 +0000 (12:13 -0700) |
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>
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>
t/test-lib.sh | patch | blob | history |
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 870b255f13e1b2d971b7e036d130d35387e3c2c7..7c2a8ba77d312c3196767969a39687bfb12f74c9 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
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.