OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc21682
)
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
diff --git
a/t/t7005-editor.sh
b/t/t7005-editor.sh
index
44228b5
..
c1cec55
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