Skip to content

Commit eb9756b

Browse files
committed
Merge branch 'jn/more-i18ncmp'
By Jonathan Nieder * jn/more-i18ncmp: test: am of empty patch should not succeed test: use test_i18ncmp for "Patch format detection failed" message test: do not rely on US English tracking-info messages
2 parents 987dbb8 + 948065a commit eb9756b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

t/t2020-checkout-detach.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ test_expect_success 'tracking count is accurate after orphan check' '
148148
git config branch.child.merge refs/heads/master &&
149149
git checkout child^ &&
150150
git checkout child >stdout &&
151-
test_cmp expect stdout
151+
test_i18ncmp expect stdout
152152
'
153153

154154
test_done

t/t4150-am.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ test_expect_success 'am empty-file does not infloop' '
525525
git reset --hard &&
526526
touch empty-file &&
527527
test_tick &&
528-
{ git am empty-file > actual 2>&1 && false || :; } &&
528+
test_must_fail git am empty-file 2>actual &&
529529
echo Patch format detection failed. >expected &&
530-
test_cmp expected actual
530+
test_i18ncmp expected actual
531531
'
532532

533533
test_done

t/t6040-tracking-info.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ test_expect_success 'checkout' '
7171
(
7272
cd test && git checkout b1
7373
) >actual &&
74-
grep "have 1 and 1 different" actual
74+
test_i18ngrep "have 1 and 1 different" actual
7575
'
7676

7777
test_expect_success 'checkout with local tracked branch' '
7878
git checkout master &&
7979
git checkout follower >actual &&
80-
grep "is ahead of" actual
80+
test_i18ngrep "is ahead of" actual
8181
'
8282

8383
test_expect_success 'status' '
@@ -87,22 +87,22 @@ test_expect_success 'status' '
8787
# reports nothing to commit
8888
test_must_fail git commit --dry-run
8989
) >actual &&
90-
grep "have 1 and 1 different" actual
90+
test_i18ngrep "have 1 and 1 different" actual
9191
'
9292

9393
test_expect_success 'fail to track lightweight tags' '
9494
git checkout master &&
9595
git tag light &&
9696
test_must_fail git branch --track lighttrack light >actual &&
97-
test_must_fail grep "set up to track" actual &&
97+
test_i18ngrep ! "set up to track" actual &&
9898
test_must_fail git checkout lighttrack
9999
'
100100

101101
test_expect_success 'fail to track annotated tags' '
102102
git checkout master &&
103103
git tag -m heavy heavy &&
104104
test_must_fail git branch --track heavytrack heavy >actual &&
105-
test_must_fail grep "set up to track" actual &&
105+
test_i18ngrep ! "set up to track" actual &&
106106
test_must_fail git checkout heavytrack
107107
'
108108

0 commit comments

Comments
 (0)