Skip to content

Commit e532a90

Browse files
szedergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b697d92 commit e532a90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5551-http-fetch-smart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ test_expect_success 'GIT_SMART_HTTP can disable smart http' '
199199

200200
test_expect_success 'invalid Content-Type rejected' '
201201
test_must_fail git clone $HTTPD_URL/broken_smart/repo.git 2>actual &&
202-
grep "not valid:" actual
202+
test_i18ngrep "not valid:" actual
203203
'
204204

205205
test_expect_success 'create namespaced refs' '
@@ -466,7 +466,7 @@ test_expect_success 'GIT_TRACE_CURL_NO_DATA prevents data from being traced' '
466466

467467
test_expect_success 'server-side error detected' '
468468
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
470470
'
471471

472472
test_done

0 commit comments

Comments
 (0)