t5551: use 'test_i18ngrep' to check translated output

The two tests 'invalid Content-Type rejected' and 'server-side error detected' in 't5551-http-fetch-smart.sh' use "plain" 'grep' to check that 'git clone' failed with the expected error message, but the messages they are checking are translated, and, consequently, these tests fail when the test script is run with GIT_TEST_GETTEXT_POISON enabled. Use 'test_i18ngrep' instead. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Jun 24, 2019 at 14:44 UTC e532a90a9fe45a55158d2d1974d41b1f37408fc4
1 file changed +2 -2
t/t5551-http-fetch-smart.sh
+2 -2
@@ -199,7 +199,7 @@ test_expect_success 'GIT_SMART_HTTP can disable smart http' '
199
200 test_expect_success 'invalid Content-Type rejected' '
201 test_must_fail git clone $HTTPD_URL/broken_smart/repo.git 2>actual &&
202 - grep "not valid:" actual
202 + test_i18ngrep "not valid:" actual
203 '
204
205 test_expect_success 'create namespaced refs' '
@@ -466,7 +466,7 @@ test_expect_success 'GIT_TRACE_CURL_NO_DATA prevents data from being traced' '
466
467 test_expect_success 'server-side error detected' '
468 test_must_fail git clone $HTTPD_URL/error_smart/repo.git 2>actual &&
469 - grep "server-side error" actual
469 + test_i18ngrep "server-side error" actual
470 '
471
472 test_done