Re: [PATCHv2 4/6] t7510: exit for loop with test result
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jun 13, 2014, 13:42 UTC
- Message-ID
- <539AFFD7.6010908@viscovery.net>
- In-Reply-To
- <539AFD3D.8090407@drmicha.warpmail.net>
Am 6/13/2014 15:31, schrieb Michael J Gruber:
Show 9 quoted lines
> rewrite of the form > > a && > b && > test_must_fail c && > d || exit 1 > > hoping that will make things both readable (by avoiding !) and concise > (by avoiding repeated exits).
Thanks!
Please note that we use 'test_must_fail' only for git invocations, but we do write '!' in front of system commands that we expect to fail, e.g., '! grep'.
-- Hannes