diff options
Diffstat (limited to 't/t6040-tracking-info.sh')
-rwxr-xr-x | t/t6040-tracking-info.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/t/t6040-tracking-info.sh b/t/t6040-tracking-info.sh index a313849406..acc281c116 100755 --- a/t/t6040-tracking-info.sh +++ b/t/t6040-tracking-info.sh @@ -5,6 +5,7 @@ test_description='remote tracking stats' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh advance () { @@ -82,13 +83,13 @@ test_expect_success 'checkout (diverged from upstream)' ' ( cd test && git checkout b1 ) >actual && - test_i18ngrep "have 1 and 1 different" actual + test_grep "have 1 and 1 different" actual ' test_expect_success 'checkout with local tracked branch' ' git checkout main && git checkout follower >actual && - test_i18ngrep "is ahead of" actual + test_grep "is ahead of" actual ' test_expect_success 'checkout (upstream is gone)' ' @@ -96,14 +97,14 @@ test_expect_success 'checkout (upstream is gone)' ' cd test && git checkout b5 ) >actual && - test_i18ngrep "is based on .*, but the upstream is gone." actual + test_grep "is based on .*, but the upstream is gone." actual ' test_expect_success 'checkout (up-to-date with upstream)' ' ( cd test && git checkout b6 ) >actual && - test_i18ngrep "Your branch is up to date with .origin/main" actual + test_grep "Your branch is up to date with .origin/main" actual ' test_expect_success 'status (diverged from upstream)' ' @@ -113,7 +114,7 @@ test_expect_success 'status (diverged from upstream)' ' # reports nothing to commit test_must_fail git commit --dry-run ) >actual && - test_i18ngrep "have 1 and 1 different" actual + test_grep "have 1 and 1 different" actual ' test_expect_success 'status (upstream is gone)' ' @@ -123,7 +124,7 @@ test_expect_success 'status (upstream is gone)' ' # reports nothing to commit test_must_fail git commit --dry-run ) >actual && - test_i18ngrep "is based on .*, but the upstream is gone." actual + test_grep "is based on .*, but the upstream is gone." actual ' test_expect_success 'status (up-to-date with upstream)' ' @@ -133,7 +134,7 @@ test_expect_success 'status (up-to-date with upstream)' ' # reports nothing to commit test_must_fail git commit --dry-run ) >actual && - test_i18ngrep "Your branch is up to date with .origin/main" actual + test_grep "Your branch is up to date with .origin/main" actual ' cat >expect <<\EOF @@ -252,7 +253,7 @@ test_expect_success 'fail to track lightweight tags' ' git checkout main && git tag light && test_must_fail git branch --track lighttrack light >actual && - test_i18ngrep ! "set up to track" actual && + test_grep ! "set up to track" actual && test_must_fail git checkout lighttrack ' @@ -260,7 +261,7 @@ test_expect_success 'fail to track annotated tags' ' git checkout main && git tag -m heavy heavy && test_must_fail git branch --track heavytrack heavy >actual && - test_i18ngrep ! "set up to track" actual && + test_grep ! "set up to track" actual && test_must_fail git checkout heavytrack ' |