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

Re: no-xmailer tests fail under Mac OS

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 9, 2014, 19:45 UTC
Message-ID
<xmqqy4qgli8y.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAO2U3Qg3KsjvWJFza4MfiQDa2LbCpOy1Nxf9Vt3NSgXc7Bee9g@mail.gmail.com>
Michael Blume <blume.mike@gmail.com> writes:
Show 14 quoted lines
> Failures start from
>
> commit d2384abff7a6181fd7b9a51af7e780aa21e5cb8d (refs/bisect/bad)
> Author: Luis Henriques <henrix@camandro.org>
> Date:   Thu Dec 4 19:11:30 2014 +0000
>
>     test/send-email: --[no-]xmailer tests
>
>     Add tests for the --[no-]xmailer option.
>
>     Signed-off-by: Luis Henriques <henrix@camandro.org>
>     Signed-off-by: Junio C Hamano <gitster@pobox.com>
>
> but continue with Junio's SQUASH??? commit at b728d078
I missed this bit in the patch you pointed out:
+       test "z$(grep ^X-Mailer: out | wc -l)" = "z$expected"

which depends on "wc -l" not to add any extra whitespace around its count. We know that some implementations do, and we should be using

	test $(grep xxx | wc -l) -eq $expected
or something, or test_line_count.
Thanks for noticing.
Previous: Jeff KingNext: Jeff King
Message 5 of 9 in “no-xmailer tests fail under Mac OS”
  1. Michael BlumeDec 6, 2014
  2. Jeff KingDec 6, 2014
  3. Michael BlumeDec 6, 2014
  4. Jeff KingDec 6, 2014
  5. Junio C HamanoDec 9, 2014
  6. Jeff KingDec 6, 2014
  7. Junio C HamanoDec 11, 2014
  8. Jeff KingDec 11, 2014
  9. Luis HenriquesDec 11, 2014

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.