From: Ævar Arnfjörð Bjarmason Date: Tue, 20 Jul 2010 23:45:11 GMT Subject: Re: [PATCH] t/: work around one-shot variable assignment with test_must_fail Message-ID: In-Reply-To: On Tue, Jul 20, 2010 at 23:44, Ævar Arnfjörð Bjarmason wrote: > On Tue, Jul 20, 2010 at 21:55, Brandon Casey wrote: > >> -       test_must_fail PAGER= git reflog show delta && >> +       ( >> +               PAGER= && >> +               export PAGER && >> +               test_must_fail git reflog show delta >> +       ) && > > You must use "export PAGER;", not "export PAGER &&". export doesn't > return zero on all systems when exporting, see previous changes in > this regard in t/. Actually, see the t/README docs which explicitly mention this. Yay docs.