Skip to content

Commit 415c7dd

Browse files
vascoolgitster
authored andcommitted
t5541: become resilient to GETTEXT_POISON
Use test_i18n* functions for testing text already marked for translation. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b18237f commit 415c7dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/t5541-http-push-smart.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ test_expect_success 'rejected update prints status' '
119119
git commit -m dev2 &&
120120
test_must_fail git push origin dev2 2>act &&
121121
sed -e "/^remote: /s/ *$//" <act >cmp &&
122-
test_cmp exp cmp
122+
test_i18ncmp exp cmp
123123
'
124124
rm -f "$HTTPD_DOCUMENT_ROOT_PATH/test_repo.git/hooks/update"
125125

@@ -219,7 +219,7 @@ test_expect_success TTY 'push shows progress when stderr is a tty' '
219219
cd "$ROOT_PATH"/test_repo_clone &&
220220
test_commit noisy &&
221221
test_terminal git push >output 2>&1 &&
222-
grep "^Writing objects" output
222+
test_i18ngrep "^Writing objects" output
223223
'
224224

225225
test_expect_success TTY 'push --quiet silences status and progress' '
@@ -233,16 +233,16 @@ test_expect_success TTY 'push --no-progress silences progress but not status' '
233233
cd "$ROOT_PATH"/test_repo_clone &&
234234
test_commit no-progress &&
235235
test_terminal git push --no-progress >output 2>&1 &&
236-
grep "^To http" output &&
237-
! grep "^Writing objects"
236+
test_i18ngrep "^To http" output &&
237+
test_i18ngrep ! "^Writing objects"
238238
'
239239

240240
test_expect_success 'push --progress shows progress to non-tty' '
241241
cd "$ROOT_PATH"/test_repo_clone &&
242242
test_commit progress &&
243243
git push --progress >output 2>&1 &&
244-
grep "^To http" output &&
245-
grep "^Writing objects" output
244+
test_i18ngrep "^To http" output &&
245+
test_i18ngrep "^Writing objects" output
246246
'
247247

248248
test_expect_success 'http push gives sane defaults to reflog' '

0 commit comments

Comments
 (0)