Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t7005: do not exit inside test.
author
Junio C Hamano
<gitster@pobox.com>
Sun, 23 Dec 2007 03:14:33 +0000
(19:14 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 23 Dec 2007 03:45:06 +0000
(19:45 -0800)
The way to signal failure is to leave non-zero in $?, not abort
the entire test.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7005-editor.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cc21682
)
diff --git
a/t/t7005-editor.sh
b/t/t7005-editor.sh
index 44228b5ac12f5df9d6def93dc74e3687ba2d8e73..c1cec553060a2fd6a4d27191a866b3bf53ba3335 100755
(executable)
--- a/
t/t7005-editor.sh
+++ b/
t/t7005-editor.sh
@@
-37,7
+37,7
@@
test_expect_success 'dumb should error out when falling back on vi' '
if git commit --amend
then
echo "Oops?"
- exit 1
+ false
else
: happy
fi