Skip to content

Commit

Permalink
t7005: do not exit inside test.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Dec 23, 2007
1 parent cc21682 commit 7263881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t7005-editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7263881

Please sign in to comment.