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

Re: [PATCH] Fix a false negative in t5512 when run using sh -x

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 10, 2010, 10:23 UTC
Message-ID
<4BE7DEB8.5000900@viscovery.net>
In-Reply-To
<AANLkTilaZlku8eQpAjMPCPkzeVyg2u21KOcsZkxn4Kxd@mail.gmail.com>
Am 5/10/2010 11:09, schrieb Sverre Rabbelier:
Show 5 quoted lines
> On Mon, May 10, 2010 at 09:19, Johannes Sixt <j6t@kdbg.org> wrote:
>> Use 'grep' to check for expected output.
> 
> Don't we do this ('test_cmp' on expected output) in many other places
> as well? Why is this different?

This is really only special because the test_cmp looked at the stderr of a test_must_fail command. The old code was:

	test_must_fail git ls-remote refs*master >actual 2>&1 &&
	test_cmp exp actual
With bash, 'actual' contained:
  ++ git ls-remote 'refs*master'
  fatal: 'refs*master' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly
  ++ test 128 -gt 0 -a 128 -le 129 -o 128 -gt 192
i.e., there were command traces in the file.
-- Hannes
Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 4 of 9 in “Fix a false negative in t5512 when run using sh -x”
  1. Fix a false negative in t5512 when run using sh -xJohannes Sixt, May 10, 2010
  2. Tay Ray ChuanMay 10, 2010
  3. Sverre RabbelierMay 10, 2010
  4. Johannes SixtMay 10, 2010
  5. Sverre RabbelierMay 10, 2010
  6. Jonathan NiederMay 10, 2010
  7. Johannes SixtMay 10, 2010
  8. Jonathan NiederMay 10, 2010
  9. Johannes SixtMay 10, 2010

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.