To check that a git command fails and to inspect its error message we
usually execute a command like this throughout our test suite:
test_must_fail git command --option 2>output.err
Note that this command doesn't limit the redirection to the git
command, but it redirects the standard error of t
On Thu, Feb 8, 2018 at 9:42 PM, SZEDER Gábor wrote:
> To check that a git command fails and to inspect its error message we
> usually execute a command like this throughout our test suite:
>
> test_must_fail git command --option 2>output.err
>
> Note that this command doesn't limit the redirecti
On Fri, Feb 09, 2018 at 03:42:34AM +0100, SZEDER Gábor wrote:
> To check that a git command fails and to inspect its error message we
> usually execute a command like this throughout our test suite:
>
> test_must_fail git command --option 2>output.err
>
> Note that this command doesn't limit t
Jeff King writes:
> 2. The "-x" problems aren't specific to test_must_fail at all. They're
> a general issue with shell functions.
>
> I'm not entirely happy with saying "if you want to use -x, please use
> bash". But given that it actually solves the problems everywhere with no
> further
On Fri, Feb 09, 2018 at 10:36:19AM -0800, Junio C Hamano wrote:
> Jeff King writes:
>
> > 2. The "-x" problems aren't specific to test_must_fail at all. They're
> > a general issue with shell functions.
> >
> > I'm not entirely happy with saying "if you want to use -x, please use
> > bash
On Fri, Feb 09, 2018 at 01:57:10PM -0500, Jeff King wrote:
> Here's what it looks like as a patch.
>
> -- >8 --
> Subject: [PATCH] t: send verbose test-helper output to fd 4
That applies on 'master'. If we go this route, we'd want this on
sg/test-i18ngrep, which is in 'next' right now:
-- >8 --
On Fri, Feb 9, 2018 at 3:21 PM, Jeff King wrote:
> On Fri, Feb 09, 2018 at 03:42:34AM +0100, SZEDER Gábor wrote:
>
>> To check that a git command fails and to inspect its error message we
>> usually execute a command like this throughout our test suite:
>>
>> test_must_fail git command --option
7 matches
Mail list logo