t4151: consolidate multiple calls to test_i18ngrep
commitdee8b71e440f94936c1115b041edd2b5b4173cc0
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Mon, 12 Feb 2018 00:17:20 +0000 (12 00:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Feb 2018 20:01:52 +0000 (12 12:01 -0800)
treed37d2ffcaf992d05a6b84618bab69481c91bee5a
parent8279ed033f703d4115bee620dccd32a9ec94d9aa
t4151: consolidate multiple calls to test_i18ngrep

Attempting to grep the output of test_i18ngrep will not work under a
poison build, since the output is (almost) guaranteed not to have the
string you are looking for. In this case, we have a test_i18ngrep call
which attempts to filter the contents of a file, which was itself the
result of a call to test_i18ngrep. In this case, we can achieve the
same effect with a single call to test_i18ngrep (without creating the
intermediate file), since the second regular expression can be used
without change to filter the original input.

Also, replace a call to test_i18ncmp with test_cmp, since the content
being compared is not subject to i18n anyway.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4151-am-abort.sh