Skip to content

Commit 476cca6

Browse files
committed
i18n: use test_i18ncmp and test_i18ngrep in t7102 and t7110
Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3e1900 commit 476cca6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

t/t7102-reset.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ Unstaged changes after reset:
423423
M file2
424424
EOF
425425

426-
test_expect_success C_LOCALE_OUTPUT '--mixed refreshes the index' '
426+
test_expect_success '--mixed refreshes the index' '
427427
echo 123 >> file2 &&
428428
git reset --mixed HEAD > output &&
429-
test_cmp expect output
429+
test_i18ncmp expect output
430430
'
431431

432432
test_expect_success 'disambiguation (1)' '

t/t7110-reset-merge.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@ test_expect_success '"reset --merge HEAD^" is ok with pending merge' '
233233
# working index HEAD target working index HEAD
234234
# ----------------------------------------------------
235235
# file1: X U B C --keep (disallowed)
236-
test_expect_success C_LOCALE_OUTPUT '"reset --keep HEAD^" fails with pending merge' '
236+
test_expect_success '"reset --keep HEAD^" fails with pending merge' '
237237
git reset --hard third &&
238238
test_must_fail git merge branch1 &&
239239
test_must_fail git reset --keep HEAD^ 2>err.log &&
240-
grep "middle of a merge" err.log
240+
test_i18ngrep "middle of a merge" err.log
241241
'
242242

243243
# The next test will test the following:
@@ -259,11 +259,11 @@ test_expect_success '"reset --merge HEAD" is ok with pending merge' '
259259
# working index HEAD target working index HEAD
260260
# ----------------------------------------------------
261261
# file1: X U B B --keep (disallowed)
262-
test_expect_success C_LOCALE_OUTPUT '"reset --keep HEAD" fails with pending merge' '
262+
test_expect_success '"reset --keep HEAD" fails with pending merge' '
263263
git reset --hard third &&
264264
test_must_fail git merge branch1 &&
265265
test_must_fail git reset --keep HEAD 2>err.log &&
266-
grep "middle of a merge" err.log
266+
test_i18ngrep "middle of a merge" err.log
267267
'
268268

269269
test_expect_success '--merge is ok with added/deleted merge' '
@@ -280,7 +280,7 @@ test_expect_success '--merge is ok with added/deleted merge' '
280280
git diff --exit-code --cached
281281
'
282282

283-
test_expect_success C_LOCALE_OUTPUT '--keep fails with added/deleted merge' '
283+
test_expect_success '--keep fails with added/deleted merge' '
284284
git reset --hard third &&
285285
rm -f file2 &&
286286
test_must_fail git merge branch3 &&
@@ -289,7 +289,7 @@ test_expect_success C_LOCALE_OUTPUT '--keep fails with added/deleted merge' '
289289
git diff --exit-code file3 &&
290290
git diff --exit-code branch3 file3 &&
291291
test_must_fail git reset --keep HEAD 2>err.log &&
292-
grep "middle of a merge" err.log
292+
test_i18ngrep "middle of a merge" err.log
293293
'
294294

295295
test_done

0 commit comments

Comments
 (0)