summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c2e9364)
raw | patch | inline | side by side (parent: c2e9364)
author | Jeff King <peff@peff.net> | |
Sat, 7 Mar 2009 17:14:04 +0000 (12:14 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 7 Mar 2009 19:28:53 +0000 (11:28 -0800) |
Some of the tests checked the exit code manually, even going
so far as to run git outside of the test_expect harness.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
so far as to run git outside of the test_expect harness.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1300-repo-config.sh | patch | blob | history |
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 11b82f43dd0220c736dd269b2f6531a1381edf3a..3c06842d99a68ea37ce82546b4bfa0cd487b87d7 100755 (executable)
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
'git config --bool emptyvalue.variable > output &&
cmp output expect'
-git config > output 2>&1
-
-test_expect_success 'no arguments, but no crash' \
- "test $? = 129 && grep usage output"
+test_expect_success 'no arguments, but no crash' '
+ test_must_fail git config >output 2>&1 &&
+ grep usage output
+'
cat > .git/config << EOF
[a.b]
test_expect_success 'new variable inserts into proper section' 'cmp .git/config expect'
test_expect_success 'alternative GIT_CONFIG (non-existing file should fail)' \
- 'git config --file non-existing-config -l; test $? != 0'
+ 'test_must_fail git config --file non-existing-config -l'
cat > other-config << EOF
[ein]