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

Re: [PATCH 0/2] Make cvs tests pass with '-x' tracing and /bin/sh

From
Jeff King <peff@peff.net>
Date
Mar 13, 2018, 00:05 UTC
Message-ID
<20180313000512.GH1968@sigill.intra.peff.net>
In-Reply-To
<20180308123844.15163-1-szeder.dev@gmail.com>
On Thu, Mar 08, 2018 at 01:38:42PM +0100, SZEDER Gábor wrote:
Show 12 quoted lines
> > I installed 'cvs' and whatnot to run t94* and t96* tests, and sure
> > enough, 5 tests in 2 test scripts fail with '-x' tracing and /bin/sh.
> > I think I will be able to get around to send v2 during the weekend.
> 
> Well, I wasn't able to get around to it, and in the meantime
> 'sg/test-x' got merged into 'next'.  So here are the updates for those
> two test scripts.
> 
> The commit message of the first patch is perhaps unnecessary long, but
> it's mostly about explaining why the affected test was working
> reasonably well despite the rather weird 'test_cmp this that >>out
> 2>&1' thing.
You know I would never complain about a long commit message. :)

Both patches look OK to me. My only comment on the first one was "you should just use 'return'", but I see Eric beat me to it.

I do think the postimage of the second one is a little less readable. That's not a big deal to me, but I'm pretty sure I would intentionally write it the "original" way if I found myself in a similar situation. Which makes me wonder whether we'll end up accidentally re-introducing these kinds of "-x" failures. But as I said before, I'm willing to wait and see.

-Peff
Previous: SZEDER Gábor
Message 14 of 14 in “Make cvs tests pass with '-x' tracing and /bin/sh”
  1. 0/2 Make cvs tests pass with '-x' tracing and /bin/shSZEDER Gábor, Mar 8, 2018
  2. 2/2 t9402-git-cvsserver-refs: don't check the stderr of a subshellSZEDER Gábor, Mar 8, 2018
  3. 1/2 t9400-git-cvsserver-server: don't rely on the output of 'test_cmp'SZEDER Gábor, Mar 8, 2018
  4. Eric SunshineMar 8, 2018
  5. SZEDER GáborMar 8, 2018
  6. Eric SunshineMar 8, 2018
  7. Eric SunshineMar 8, 2018
  8. SZEDER GáborMar 8, 2018
  9. 1/2 t9400-git-cvsserver-server: don't rely on the output of 'test_cmp'SZEDER Gábor, Mar 8, 2018
  10. Junio C HamanoMar 8, 2018
  11. SZEDER GáborMar 8, 2018
  12. Junio C HamanoMar 8, 2018
  13. SZEDER GáborMar 9, 2018
  14. Jeff KingMar 13, 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.