Skip to content

Commit 61aff49

Browse files
committed
Merge branch 'avar/nuke-test_i18ngrep' into build-master
* avar/nuke-test_i18ngrep: tests with git#10 test_i18ngrep: replace it with 'grep' tests with git#9 test_i18ngrep: replace it with 'grep' tests with git#8 test_i18ngrep: replace it with 'grep' tests with #7 test_i18ngrep: replace it with 'grep' tests with git#6 test_i18ngrep: replace it with 'grep' tests with #5 test_i18ngrep: replace it with 'grep' tests with #4 test_i18ngrep: replace it with 'grep' tests with #3 test_i18ngrep: replace it with 'grep' tests with #2 test_i18ngrep: replace it with 'grep' tests with #1 test_i18ngrep: replace it with 'grep'
2 parents 16481ad + 6a18f63 commit 61aff49

File tree

185 files changed

+587
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+587
-587
lines changed

t/lib-httpd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ test_http_push_nonff () {
230230
'
231231

232232
test_expect_success 'non-fast-forward push shows help message' '
233-
test_i18ngrep "Updates were rejected because" output
233+
grep "Updates were rejected because" output
234234
'
235235

236236
test_expect_${EXPECT_CAS_RESULT} 'force with lease aka cas' '

t/lib-submodule-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ test_submodule_recursing_with_args_common () {
830830
cd submodule_update &&
831831
git branch -t invalid_sub1 origin/invalid_sub1 &&
832832
test_must_fail $command invalid_sub1 2>err &&
833-
test_i18ngrep sub1 err &&
833+
grep sub1 err &&
834834
test_superproject_content origin/add_sub1 &&
835835
test_submodule_content sub1 origin/add_sub1
836836
)

t/t0001-init.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ test_expect_success 'reinit' '
168168
git -c init.defaultBranch=initial init >out1 2>err1 &&
169169
git init >out2 2>err2
170170
) &&
171-
test_i18ngrep "Initialized empty" again/out1 &&
172-
test_i18ngrep "Reinitialized existing" again/out2 &&
171+
grep "Initialized empty" again/out1 &&
172+
grep "Reinitialized existing" again/out2 &&
173173
test_must_be_empty again/err1 &&
174174
test_must_be_empty again/err2
175175
'
@@ -332,15 +332,15 @@ test_expect_success 'init with separate gitdir' '
332332

333333
test_expect_success 'explicit bare & --separate-git-dir incompatible' '
334334
test_must_fail git init --bare --separate-git-dir goop.git bare.git 2>err &&
335-
test_i18ngrep "cannot be used together" err
335+
grep "cannot be used together" err
336336
'
337337

338338
test_expect_success 'implicit bare & --separate-git-dir incompatible' '
339339
test_when_finished "rm -rf bare.git" &&
340340
mkdir -p bare.git &&
341341
test_must_fail env GIT_DIR=. \
342342
git -C bare.git init --separate-git-dir goop.git 2>err &&
343-
test_i18ngrep "incompatible" err
343+
grep "incompatible" err
344344
'
345345

346346
test_expect_success 'bare & --separate-git-dir incompatible within worktree' '
@@ -349,7 +349,7 @@ test_expect_success 'bare & --separate-git-dir incompatible within worktree' '
349349
git clone --bare . bare.git &&
350350
git -C bare.git worktree add --detach ../linkwt &&
351351
test_must_fail git -C linkwt init --separate-git-dir seprepo 2>err &&
352-
test_i18ngrep "incompatible" err
352+
grep "incompatible" err
353353
'
354354

355355
test_lazy_prereq GETCWD_IGNORES_PERMS '
@@ -563,7 +563,7 @@ test_expect_success '--initial-branch' '
563563
564564
: re-initializing should not change the branch name &&
565565
git init --initial-branch=ignore initial-branch-option 2>err &&
566-
test_i18ngrep "ignored --initial-branch" err &&
566+
grep "ignored --initial-branch" err &&
567567
git -C initial-branch-option symbolic-ref HEAD >actual &&
568568
grep hello actual
569569
'
@@ -579,7 +579,7 @@ test_expect_success 'advice on unconfigured init.defaultBranch' '
579579
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= git -c color.advice=always \
580580
init unconfigured-default-branch-name 2>err &&
581581
test_decode_color <err >decoded &&
582-
test_i18ngrep "<YELLOW>hint: " decoded
582+
grep "<YELLOW>hint: " decoded
583583
'
584584

585585
test_expect_success 'overridden default main branch name (env)' '
@@ -592,7 +592,7 @@ test_expect_success 'overridden default main branch name (env)' '
592592
test_expect_success 'invalid default branch name' '
593593
test_must_fail env GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME="with space" \
594594
git init initial-branch-invalid 2>err &&
595-
test_i18ngrep "invalid branch name" err
595+
grep "invalid branch name" err
596596
'
597597

598598
test_expect_success 'branch -m with the initial branch' '

t/t0002-gitfile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ test_expect_success 'initial setup' '
2222
test_expect_success 'bad setup: invalid .git file format' '
2323
echo "gitdir $REAL" >.git &&
2424
test_must_fail git rev-parse 2>.err &&
25-
test_i18ngrep "invalid gitfile format" .err
25+
grep "invalid gitfile format" .err
2626
'
2727

2828
test_expect_success 'bad setup: invalid .git file path' '
2929
echo "gitdir: $REAL.not" >.git &&
3030
test_must_fail git rev-parse 2>.err &&
31-
test_i18ngrep "not a git repository" .err
31+
grep "not a git repository" .err
3232
'
3333

3434
test_expect_success 'final setup + check rev-parse --git-dir' '

t/t0003-attributes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ test_expect_success 'root subdir attribute test' '
250250
test_expect_success 'negative patterns' '
251251
echo "!f test=bar" >.gitattributes &&
252252
git check-attr test -- '"'"'!f'"'"' 2>errors &&
253-
test_i18ngrep "Negative patterns are ignored" errors
253+
grep "Negative patterns are ignored" errors
254254
'
255255

256256
test_expect_success 'patterns starting with exclamation' '
@@ -415,7 +415,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
415415
mkdir subdir &&
416416
ln -s ../attr subdir/.gitattributes &&
417417
attr_check_basic subdir/file unspecified &&
418-
test_i18ngrep "unable to access.*gitattributes" err
418+
grep "unable to access.*gitattributes" err
419419
'
420420

421421
test_expect_success 'large attributes line ignored in tree' '

t/t0008-ignores.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ broken_c_unquote_verbose () {
4949

5050
stderr_contains () {
5151
regexp="$1"
52-
if test_i18ngrep "$regexp" "$HOME/stderr"
52+
if grep "$regexp" "$HOME/stderr"
5353
then
5454
return 0
5555
else
@@ -942,7 +942,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
942942
ln -s ignore subdir/.gitignore &&
943943
test_must_fail git check-ignore subdir/file >actual 2>err &&
944944
test_must_be_empty actual &&
945-
test_i18ngrep "unable to access.*gitignore" err
945+
grep "unable to access.*gitignore" err
946946
'
947947

948948
test_done

t/t0012-help.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@ test_expect_success "--help does not work for guides" "
100100

101101
test_expect_success 'git help' '
102102
git help >help.output &&
103-
test_i18ngrep "^ clone " help.output &&
104-
test_i18ngrep "^ add " help.output &&
105-
test_i18ngrep "^ log " help.output &&
106-
test_i18ngrep "^ commit " help.output &&
107-
test_i18ngrep "^ fetch " help.output
103+
grep "^ clone " help.output &&
104+
grep "^ add " help.output &&
105+
grep "^ log " help.output &&
106+
grep "^ commit " help.output &&
107+
grep "^ fetch " help.output
108108
'
109109

110110
test_expect_success 'git help -g' '
111111
git help -g >help.output &&
112-
test_i18ngrep "^ everyday " help.output &&
113-
test_i18ngrep "^ tutorial " help.output
112+
grep "^ everyday " help.output &&
113+
grep "^ tutorial " help.output
114114
'
115115

116116
test_expect_success 'git help fails for non-existing html pages' '
@@ -259,7 +259,7 @@ do
259259
export GIT_CEILING_DIRECTORIES &&
260260
test_expect_code 129 git -C sub $builtin -h >output 2>&1
261261
) &&
262-
test_i18ngrep usage output
262+
grep usage output
263263
'
264264
done <builtins
265265

t/t0013-sha1dc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
test_expect_success 'test-sha1 detects shattered pdf' '
1818
test_must_fail test-tool sha1 <"$TEST_DATA/shattered-1.pdf" 2>err &&
19-
test_i18ngrep collision err &&
19+
grep collision err &&
2020
grep 38762cf7f55934b34d179ae6a4c80cadccbb7f0a err
2121
'
2222

t/t0014-alias.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ test_expect_success 'nested aliases - internal execution' '
88
git config alias.nested-internal-1 nested-internal-2 &&
99
git config alias.nested-internal-2 status &&
1010
git nested-internal-1 >output &&
11-
test_i18ngrep "^On branch " output
11+
grep "^On branch " output
1212
'
1313

1414
test_expect_success 'nested aliases - mixed execution' '
1515
git config alias.nested-external-1 nested-external-2 &&
1616
git config alias.nested-external-2 "!git nested-external-3" &&
1717
git config alias.nested-external-3 status &&
1818
git nested-external-1 >output &&
19-
test_i18ngrep "^On branch " output
19+
grep "^On branch " output
2020
'
2121

2222
test_expect_success 'looping aliases - internal execution' '
2323
git config alias.loop-internal-1 loop-internal-2 &&
2424
git config alias.loop-internal-2 loop-internal-3 &&
2525
git config alias.loop-internal-3 loop-internal-2 &&
2626
test_must_fail git loop-internal-1 2>output &&
27-
test_i18ngrep "^fatal: alias loop detected: expansion of" output
27+
grep "^fatal: alias loop detected: expansion of" output
2828
'
2929

3030
# This test is disabled until external loops are fixed, because would block
@@ -34,7 +34,7 @@ test_expect_success 'looping aliases - internal execution' '
3434
# git config alias.loop-mixed-1 loop-mixed-2 &&
3535
# git config alias.loop-mixed-2 "!git loop-mixed-1" &&
3636
# test_must_fail git loop-mixed-1 2>output &&
37-
# test_i18ngrep "^fatal: alias loop detected: expansion of" output
37+
# grep "^fatal: alias loop detected: expansion of" output
3838
#'
3939

4040
test_expect_success 'run-command formats empty args properly' '

t/t0021-conversion.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ test_expect_success 'required filter with absent clean field' '
263263
264264
echo test >test.ac &&
265265
test_must_fail git add test.ac 2>stderr &&
266-
test_i18ngrep "fatal: test.ac: clean filter .absentclean. failed" stderr
266+
grep "fatal: test.ac: clean filter .absentclean. failed" stderr
267267
'
268268

269269
test_expect_success 'required filter with absent smudge field' '
@@ -276,7 +276,7 @@ test_expect_success 'required filter with absent smudge field' '
276276
git add test.as &&
277277
rm -f test.as &&
278278
test_must_fail git checkout -- test.as 2>stderr &&
279-
test_i18ngrep "fatal: test.as: smudge filter absentsmudge failed" stderr
279+
grep "fatal: test.as: smudge filter absentsmudge failed" stderr
280280
'
281281

282282
test_expect_success 'filtering large input to small output should use little memory' '
@@ -733,7 +733,7 @@ test_expect_success 'process filter should restart after unexpected write failur
733733
git checkout --quiet --no-progress . 2>git-stderr.log &&
734734
735735
grep "smudge write error" git-stderr.log &&
736-
test_i18ngrep "error: external filter" git-stderr.log &&
736+
grep "error: external filter" git-stderr.log &&
737737
738738
cat >expected.log <<-EOF &&
739739
START

t/t0040-parse-options.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ test_expect_success 'OPT_CMDMODE() works' '
365365
test_expect_success 'OPT_CMDMODE() detects incompatibility' '
366366
test_must_fail test-tool parse-options --mode1 --mode2 >output 2>output.err &&
367367
test_must_be_empty output &&
368-
test_i18ngrep "incompatible with --mode" output.err
368+
grep "incompatible with --mode" output.err
369369
'
370370

371371
test_expect_success 'OPT_CMDMODE() detects incompatibility with something else' '
372372
test_must_fail test-tool parse-options --set23 --mode2 >output 2>output.err &&
373373
test_must_be_empty output &&
374-
test_i18ngrep "incompatible with something else" output.err
374+
grep "incompatible with something else" output.err
375375
'
376376

377377
test_expect_success 'OPT_COUNTUP() with PARSE_OPT_NODASH works' '

t/t0061-run-command.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ test_expect_success MINGW 'subprocess inherits only std handles' '
1919

2020
test_expect_success 'start_command reports ENOENT (slash)' '
2121
test-tool run-command start-command-ENOENT ./does-not-exist 2>err &&
22-
test_i18ngrep "\./does-not-exist" err
22+
grep "\./does-not-exist" err
2323
'
2424

2525
test_expect_success 'start_command reports ENOENT (no slash)' '
2626
test-tool run-command start-command-ENOENT does-not-exist 2>err &&
27-
test_i18ngrep "does-not-exist" err
27+
grep "does-not-exist" err
2828
'
2929

3030
test_expect_success 'run_command can run a command' '
@@ -49,7 +49,7 @@ test_expect_success !RUNS_COMMANDS_FROM_PWD 'run_command is restricted to PATH'
4949
echo yikes
5050
EOF
5151
test_must_fail test-tool run-command run-command should-not-run 2>err &&
52-
test_i18ngrep "should-not-run" err
52+
grep "should-not-run" err
5353
'
5454

5555
test_expect_success !MINGW 'run_command can run a script without a #! line' '

t/t0070-fundamental.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ test_expect_success 'incomplete sideband messages are reassembled' '
4444
test_expect_success 'eof on sideband message is reported' '
4545
printf 1234 >input &&
4646
test-tool pkt-line receive-sideband <input 2>err &&
47-
test_i18ngrep "unexpected disconnect" err
47+
grep "unexpected disconnect" err
4848
'
4949

5050
test_expect_success 'missing sideband designator is reported' '
5151
printf 0004 >input &&
5252
test-tool pkt-line receive-sideband <input 2>err &&
53-
test_i18ngrep "missing sideband" err
53+
grep "missing sideband" err
5454
'
5555

5656
test_done

t/t0091-bugreport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test_expect_success '--output-directory puts the report in the provided dir' '
4444

4545
test_expect_success 'incorrect arguments abort with usage' '
4646
test_must_fail git bugreport --false 2>output &&
47-
test_i18ngrep usage output &&
47+
grep usage output &&
4848
test_path_is_missing git-bugreport-*
4949
'
5050

t/t0300-credentials.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ test_expect_success 'credential config with partial URLs' '
715715
git -c credential.$partial.helper=yep \
716716
-c credential.with%0anewline.username=uh-oh \
717717
credential fill <stdin >stdout 2>stderr &&
718-
test_i18ngrep "skipping credential lookup for key" stderr
718+
grep "skipping credential lookup for key" stderr
719719
'
720720

721721
test_done

t/t1060-object-corruption.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ test_expect_success 'fetch into corrupted repo with index-pack' '
125125
cd bit-error-cp &&
126126
test_must_fail git -c transfer.unpackLimit=1 \
127127
fetch ../no-bit-error 2>stderr &&
128-
test_i18ngrep ! -i collision stderr
128+
! grep -i collision stderr
129129
)
130130
'
131131

t/t1092-sparse-checkout-compatibility.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ test_expect_success 'status reports sparse-checkout' '
337337
init_repos &&
338338
git -C sparse-checkout status >full &&
339339
git -C sparse-index status >sparse &&
340-
test_i18ngrep "You are in a sparse checkout with " full &&
341-
test_i18ngrep "You are in a sparse checkout." sparse
340+
grep "You are in a sparse checkout with " full &&
341+
grep "You are in a sparse checkout." sparse
342342
'
343343

344344
test_expect_success 'add, commit, checkout' '
@@ -1182,7 +1182,7 @@ test_expect_success 'checkout-index outside sparse definition' '
11821182
# Without --ignore-skip-worktree-bits, outside-of-cone files will trigger
11831183
# an error
11841184
test_sparse_match test_must_fail git checkout-index -- folder1/a &&
1185-
test_i18ngrep "folder1/a has skip-worktree enabled" sparse-checkout-err &&
1185+
grep "folder1/a has skip-worktree enabled" sparse-checkout-err &&
11861186
test_path_is_missing folder1/a &&
11871187
11881188
# With --ignore-skip-worktree-bits, outside-of-cone files are checked out

t/t1307-config-blob.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test_expect_success 'parse errors in blobs are properly attributed' '
6363
git commit -m broken &&
6464
6565
test_must_fail git config --blob=HEAD:config some.value 2>err &&
66-
test_i18ngrep "HEAD:config" err
66+
grep "HEAD:config" err
6767
'
6868

6969
test_expect_success 'can parse blob ending with CR' '

t/t1308-config-set.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ test_expect_success 'find string value for a key' '
168168

169169
test_expect_success 'check line error when NULL string is queried' '
170170
test_expect_code 128 test-tool config get_string case.foo 2>result &&
171-
test_i18ngrep "fatal: .*case\.foo.*\.git/config.*line 7" result
171+
grep "fatal: .*case\.foo.*\.git/config.*line 7" result
172172
'
173173

174174
test_expect_success 'find integer if value is non parse-able' '
@@ -333,14 +333,14 @@ test_expect_success 'check line errors for malformed values' '
333333
br
334334
EOF
335335
test_expect_code 128 git br 2>result &&
336-
test_i18ngrep "missing value for .alias\.br" result &&
337-
test_i18ngrep "fatal: .*\.git/config" result &&
338-
test_i18ngrep "fatal: .*line 2" result
336+
grep "missing value for .alias\.br" result &&
337+
grep "fatal: .*\.git/config" result &&
338+
grep "fatal: .*line 2" result
339339
'
340340

341341
test_expect_success 'error on modifying repo config without repo' '
342342
nongit test_must_fail git config a.b c 2>err &&
343-
test_i18ngrep "not in a git directory" err
343+
grep "not in a git directory" err
344344
'
345345

346346
cmdline_config="'foo.bar=from-cmdline'"

t/t1309-early-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test_with_config () {
7878

7979
test_expect_success 'ignore .git/ with incompatible repository version' '
8080
test_with_config "[core]repositoryformatversion = 999999" 2>err &&
81-
test_i18ngrep "warning:.* Expected git repo version <= [1-9]" err
81+
grep "warning:.* Expected git repo version <= [1-9]" err
8282
'
8383

8484
test_expect_failure 'ignore .git/ with invalid repository version' '

0 commit comments

Comments
 (0)