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

Re: [PATCH 1/1] t3420: remove progress lines before comparing output

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 2, 2019, 17:23 UTC
Message-ID
<xmqqmuhw4afu.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<2a0a968e-6929-71eb-77cf-ec3ee28fd734@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 7 quoted lines
>> As long as sed implementation used here does not do anything funny
>> to CR, I think the approach to strip everything before the last CR
>> on the line is sensible.  As I am not familiar with how Windows port
>> of sed wants to treat a CR byte in the pattern, I am not sure about
>> the precondition of the above statement, though.
>
> I wondered about that too, but it passes the CI tests under windows.

Hopefully Git for Windows, MinGW, and CygWin would all behave similarly.

Show 6 quoted lines
>> I also have to wonder if we can/want to do this without an extra
>> printf process every time we sanitize the output, though I do not
>> think I care too deeply about it.
>
> I could add 're="$(printf ...)"' to the setup at the top of the file
> if you want

As I do not care too deeply about it, we recently saw a lot about reducing number of processes in the tests, so apparently some folks care and I presume they want to see something like that to happen. I do not think $re is a good name for such a variable, though ;-)

Previous: Phillip WoodNext: Phillip Wood
Message 5 of 8 in “t3420 remove progress from output”
  1. 0/1 t3420 remove progress from outputPhillip Wood via GitGitGadget, Jul 1, 2019
  2. 1/1 t3420: remove progress lines before comparing outputPhillip Wood via GitGitGadget, Jul 1, 2019
  3. Junio C HamanoJul 1, 2019
  4. Phillip WoodJul 2, 2019
  5. Junio C HamanoJul 2, 2019
  6. Phillip WoodJul 4, 2019
  7. 0/1 t3420 remove progress from outputPhillip Wood via GitGitGadget, Jul 4, 2019
  8. 1/1 t3420: remove progress lines before comparing outputPhillip Wood via GitGitGadget, Jul 4, 2019

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.