From: Stephan Beyer Date: Fri, 20 Jun 2008 19:00:37 GMT Subject: Re: [PATCH 1/2] t3404: extra checks and s/! git/test_must_fail git/ Message-ID: <20080620190037.GE7369@leksak.fem-net> In-Reply-To: Hi, > > @@ -380,7 +397,7 @@ test_expect_success 'interrupted squash works as expected' ' > > ! FAKE_LINES="1 squash 3 2" git rebase -i HEAD~3 && > > These can be converted to use test_must_fail by using a sub-shell > as Junio demonstrated: > > ( > FAKE_LINES="1 squash 3 2" && > export FAKE_LINES && > test_must_fail git rebase -i HEAD~3 > ) && Perhaps I'm not consequent, but I thought that it's not worth it ;-) (There is also another reason: I use a dirty test-lib.sh _hack_ locally, that allows me to exactly see where a failing test_expect_success patch fails (that saves some time), but the hack does not work on tests with a subshell invocation.) Regards, Stephan -- Stephan Beyer , PGP 0x6EDDD207FCC5040F