Skip to content

Commit d3bd042

Browse files
committed
i18n: use test_i18ngrep in lib-httpd and t2019
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 127df8c commit d3bd042

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

t/lib-httpd.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ test_http_push_nonff() {
157157
grep "^ ! \[rejected\][ ]*$BRANCH -> $BRANCH (non-fast-forward)$" output
158158
'
159159

160-
test_expect_success C_LOCALE_OUTPUT 'non-fast-forward push shows help message' '
161-
grep "To prevent you from losing history, non-fast-forward updates were rejected" \
162-
output
160+
test_expect_success 'non-fast-forward push shows help message' '
161+
test_i18ngrep "To prevent you from losing history, non-fast-forward updates were rejected" output
163162
'
164163
}

t/t2019-checkout-ambiguous-ref.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ test_expect_success 'checkout chooses branch over tag' '
2929
test_cmp expect file
3030
'
3131

32-
test_expect_success C_LOCALE_OUTPUT 'checkout reports switch to branch' '
33-
grep "Switched to branch" stderr &&
34-
! grep "^HEAD is now at" stderr
32+
test_expect_success 'checkout reports switch to branch' '
33+
test_i18ngrep "Switched to branch" stderr &&
34+
test_i18ngrep ! "^HEAD is now at" stderr
3535
'
3636

3737
test_expect_success 'checkout vague ref succeeds' '
@@ -51,9 +51,9 @@ test_expect_success VAGUENESS_SUCCESS 'checkout chooses branch over tag' '
5151
test_cmp expect file
5252
'
5353

54-
test_expect_success VAGUENESS_SUCCESS,C_LOCALE_OUTPUT 'checkout reports switch to branch' '
55-
grep "Switched to branch" stderr &&
56-
! grep "^HEAD is now at" stderr
54+
test_expect_success VAGUENESS_SUCCESS 'checkout reports switch to branch' '
55+
test_i18ngrep "Switched to branch" stderr &&
56+
test_i18ngrep ! "^HEAD is now at" stderr
5757
'
5858

5959
test_done

0 commit comments

Comments
 (0)