tests: teach callers of test_i18ngrep to use test_grep
They are equivalents and the former still exists, so as long as the only change this commit makes are to rewrite test_i18ngrep to test_grep, there won't be any new bug, even if there still are callers of test_i18ngrep remaining in the tree, or when merged to other topics that add new uses of test_i18ngrep. This patch was produced more or less with git grep -l -e 'test_i18ngrep ' 't/t[0-9][0-9][0-9][0-9]-*.sh' | xargs perl -p -i -e 's/test_i18ngrep /test_grep /' and a good way to sanity check the result yourself is to run the above in a checkout of c4603c1c (test framework: further deprecate test_i18ngrep, 2023-10-31) and compare the resulting working tree contents with the result of applying this patch to the same commit. You'll see that test_i18ngrep in a few t/lib-*.sh files corrected, in addition to the manual reproduction. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -1884,7 +1884,7 @@ test_expect_success '--no-graph does not unset --parents' '
|
||||
|
||||
test_expect_success '--reverse and --graph conflict' '
|
||||
test_must_fail git log --reverse --graph 2>stderr &&
|
||||
test_i18ngrep "cannot be used together" stderr
|
||||
test_grep "cannot be used together" stderr
|
||||
'
|
||||
|
||||
test_expect_success '--reverse --graph --no-graph works' '
|
||||
@ -1895,7 +1895,7 @@ test_expect_success '--reverse --graph --no-graph works' '
|
||||
|
||||
test_expect_success '--show-linear-break and --graph conflict' '
|
||||
test_must_fail git log --show-linear-break --graph 2>stderr &&
|
||||
test_i18ngrep "cannot be used together" stderr
|
||||
test_grep "cannot be used together" stderr
|
||||
'
|
||||
|
||||
test_expect_success '--show-linear-break --graph --no-graph works' '
|
||||
@ -1906,7 +1906,7 @@ test_expect_success '--show-linear-break --graph --no-graph works' '
|
||||
|
||||
test_expect_success '--no-walk and --graph conflict' '
|
||||
test_must_fail git log --no-walk --graph 2>stderr &&
|
||||
test_i18ngrep "cannot be used together" stderr
|
||||
test_grep "cannot be used together" stderr
|
||||
'
|
||||
|
||||
test_expect_success '--no-walk --graph --no-graph works' '
|
||||
@ -1917,8 +1917,8 @@ test_expect_success '--no-walk --graph --no-graph works' '
|
||||
|
||||
test_expect_success '--walk-reflogs and --graph conflict' '
|
||||
test_must_fail git log --walk-reflogs --graph 2>stderr &&
|
||||
(test_i18ngrep "cannot combine" stderr ||
|
||||
test_i18ngrep "cannot be used together" stderr)
|
||||
(test_grep "cannot combine" stderr ||
|
||||
test_grep "cannot be used together" stderr)
|
||||
'
|
||||
|
||||
test_expect_success '--walk-reflogs --graph --no-graph works' '
|
||||
@ -2252,7 +2252,7 @@ test_expect_success 'log on empty repo fails' '
|
||||
git init empty &&
|
||||
test_when_finished "rm -rf empty" &&
|
||||
test_must_fail git -C empty log 2>stderr &&
|
||||
test_i18ngrep does.not.have.any.commits stderr
|
||||
test_grep does.not.have.any.commits stderr
|
||||
'
|
||||
|
||||
test_expect_success REFFILES 'log diagnoses bogus HEAD hash' '
|
||||
@ -2260,16 +2260,16 @@ test_expect_success REFFILES 'log diagnoses bogus HEAD hash' '
|
||||
test_when_finished "rm -rf empty" &&
|
||||
echo 1234abcd >empty/.git/refs/heads/main &&
|
||||
test_must_fail git -C empty log 2>stderr &&
|
||||
test_i18ngrep broken stderr
|
||||
test_grep broken stderr
|
||||
'
|
||||
|
||||
test_expect_success REFFILES 'log diagnoses bogus HEAD symref' '
|
||||
git init empty &&
|
||||
echo "ref: refs/heads/invalid.lock" > empty/.git/HEAD &&
|
||||
test_must_fail git -C empty log 2>stderr &&
|
||||
test_i18ngrep broken stderr &&
|
||||
test_grep broken stderr &&
|
||||
test_must_fail git -C empty log --default totally-bogus 2>stderr &&
|
||||
test_i18ngrep broken stderr
|
||||
test_grep broken stderr
|
||||
'
|
||||
|
||||
test_expect_success 'log does not default to HEAD when rev input is given' '
|
||||
|
Reference in New Issue
Block a user