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

Re: [PATCH] tests: remove "cat foo" before "test_i18ngrep bar foo"

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 7, 2019, 01:19 UTC
Message-ID
<xmqqsgo54ak3.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<d178227d-7658-8c49-a147-e88d31c713e3@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 15 quoted lines
> Some tests print a file before searching for a pattern using
> test_i18ngrep.  This is useful when debugging tests with --verbose when
> the pattern is not found as expected.
>
> Since 63b1a175ee (t: make 'test_i18ngrep' more informative on failure,
> 2018-02-08) test_i18ngrep already shows the contents of a file that
> doesn't match the expected pattern, though.
>
> So don't bother doing the same unconditionally up-front.  The contents
> are not interesting if the expected pattern is found, and showing it
> twice if it doesn't match is of no use.
>
> Signed-off-by: René Scharfe <l.s.r@web.de>
> ---
> Almost formatted it using -U1..
Yeah, that's tempting ;-)
Thanks.  All looked good.
Previous: René Scharfe
Message 2 of 2 in “tests: remove "cat foo" before "test_i18ngrep bar foo"”
  1. tests: remove "cat foo" before "test_i18ngrep bar foo"René Scharfe, Oct 6, 2019
  2. Junio C HamanoOct 7, 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.