From: Junio C Hamano Date: Mon, 07 Oct 2019 01:19:08 GMT Subject: Re: [PATCH] tests: remove "cat foo" before "test_i18ngrep bar foo" Message-ID: In-Reply-To: René Scharfe writes: > 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 > --- > Almost formatted it using -U1.. Yeah, that's tempting ;-) Thanks. All looked good.