git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Running some tests with -x fails

From
Jeff King <peff@peff.net>
Date
Mar 14, 2018, 14:50 UTC
Message-ID
<20180314145050.GA15531@sigill.intra.peff.net>
In-Reply-To
<CAP8UFD29eFPfiW2PjOr4evjB2X=yDWULOgUx2NRM83Mt0FDXUw@mail.gmail.com>
On Wed, Mar 14, 2018 at 03:30:30PM +0100, Christian Couder wrote:
Show 15 quoted lines
> 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
Previous: Christian Couder
Message 2 of 2 in “Running some tests with -x fails”
  1. Christian CouderMar 14, 2018
  2. Jeff KingMar 14, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.