Re: [PATCH 1/2] t3404: extra checks and s/! git/test_must_fail git/
- From
Stephan Beyer <s-beyer@gmx.net>
- Date
- Jun 20, 2008, 19:00 UTC
- Message-ID
- <20080620190037.GE7369@leksak.fem-net>
- In-Reply-To
- <X-0hXtX7hZGzbL_zS7e4VUMsiMfWiIfABUCFp28XZx0@cipher.nrlssc.navy.mil>
Hi,
Show 11 quoted lines
> > @@ -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 <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F