Skip to content

Commit 7263881

Browse files
committed
t7005: do not exit inside test.
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>
1 parent cc21682 commit 7263881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7005-editor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test_expect_success 'dumb should error out when falling back on vi' '
3737
if git commit --amend
3838
then
3939
echo "Oops?"
40-
exit 1
40+
false
4141
else
4242
: happy
4343
fi

0 commit comments

Comments
 (0)