t7005: do not exit inside test.
authorJunio C Hamano <gitster@pobox.com>
Sun, 23 Dec 2007 03:14:33 +0000 (19:14 -0800)
committerJunio 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

index 44228b5ac12f5df9d6def93dc74e3687ba2d8e73..c1cec553060a2fd6a4d27191a866b3bf53ba3335 100755 (executable)
@@ -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