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
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Jul 4, 2019, 09:53 UTC
Message-ID
<b7cdf6af-061f-6578-384f-e378b712eea6@gmail.com>
In-Reply-To
<xmqqmuhw4afu.fsf@gitster-ct.c.googlers.com>
On 02/07/2019 18:23, Junio C Hamano wrote:
Show 24 quoted lines
> Phillip Wood <phillip.wood123@gmail.com> writes:
> 
>>> 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.
> 
>>> 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 ;-)
Yes, $re was just a place holder - naming is hard ...
Best Wishes
Phillip
Previous: Junio C HamanoNext: Phillip Wood via GitGitGadget
Message 6 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.