git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] t7005: do not exit inside test.
@ 2007-12-23  3:55 Junio C Hamano
  2007-12-23  3:55 ` [PATCH 2/4] builtin-commit: fix amending of the initial commit Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2007-12-23  3:55 UTC (permalink / raw)
  To: git

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 44228b5..c1cec55 100755
--- 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
-- 
1.5.4.rc1.19.g9151fa

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-27  0:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-23  3:55 [PATCH 1/4] t7005: do not exit inside test Junio C Hamano
2007-12-23  3:55 ` [PATCH 2/4] builtin-commit: fix amending of the initial commit Junio C Hamano
2007-12-23  3:55   ` [PATCH 3/4] builtin-commit: avoid double-negation in the code Junio C Hamano
2007-12-23  3:55     ` [PATCH 4/4] Allow selection of different cleanup modes for commit messages Junio C Hamano
2007-12-26 23:54       ` Junio C Hamano
2007-12-27  0:44         ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).