]> git.ipfire.org Git - thirdparty/git.git/commit
tests: remove "cat foo" before "test_i18ngrep bar foo"
authorRené Scharfe <l.s.r@web.de>
Sun, 6 Oct 2019 13:26:42 +0000 (15:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Oct 2019 01:17:44 +0000 (10:17 +0900)
commitf537485fa5535c65ec7e0cbe156eb60eb260f18e
tree88874145eb2b842c3b69a83ccc5ded676c824805
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
tests: remove "cat foo" before "test_i18ngrep bar foo"

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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh
t/t5801-remote-helpers.sh
t/t7400-submodule-basic.sh
t/t9300-fast-import.sh