* Running some tests with -x fails
@ 2018-03-14 14:30 Christian Couder
2018-03-14 14:50 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Christian Couder @ 2018-03-14 14:30 UTC (permalink / raw)
To: git
I don't know if this is well known already, but when when I run some
tests using -x on master they consistently fail (while they
consistently pass without -x).
For example:
./t5500-fetch-pack.sh -x
gives: # failed 3 among 353 test(s)
./t0008-ignores.sh -x
gives: # failed 208 among 394 test(s)
Are we interested in trying to fix those failures or are we ok with them?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Running some tests with -x fails
2018-03-14 14:30 Running some tests with -x fails Christian Couder
@ 2018-03-14 14:50 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2018-03-14 14:50 UTC (permalink / raw)
To: Christian Couder; +Cc: SZEDER Gábor, git
On Wed, Mar 14, 2018 at 03:30:30PM +0100, Christian Couder wrote:
> I don't know if this is well known already, but when when I run some
> tests using -x on master they consistently fail (while they
> consistently pass without -x).
>
> For example:
>
> ./t5500-fetch-pack.sh -x
>
> gives: # failed 3 among 353 test(s)
>
> ./t0008-ignores.sh -x
>
> gives: # failed 208 among 394 test(s)
>
> Are we interested in trying to fix those failures or are we ok with them?
This is known; the issue is tests that run shell functions or subshells
and capture their stderr (which then get polluted by "-x" output). You
can either:
- run the tests with bash, which uses BASH_XTRACEFD to send output
directly to the terminal (see TEST_SHELL_PATH in recent versions)
- try 'next'; Gábor has done some work recently to clean up tests so
that this works even with non-bash shells. See the sg/test-x and
sg/cvs-tests-with-x topics.
-Peff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-14 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14 14:30 Running some tests with -x fails Christian Couder
2018-03-14 14:50 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).