Skip to content

Commit 522010b

Browse files
committed
Merge branch 'ab/detox-gettext-tests'
Test clean-up. * ab/detox-gettext-tests: tests: remove all uses of test_i18cmp
2 parents e02f75c + feeb03b commit 522010b

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

t/t3437-rebase-fixup-options.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ test_expect_success 'sequence of fixup, fixup -C & squash --signoff works' '
157157
git -c commit.status=false rebase -ik --signoff A &&
158158
git diff-tree --exit-code --patch HEAD B3 -- &&
159159
test_cmp_rev HEAD^ A &&
160-
test_i18ncmp "$TEST_DIRECTORY/t3437/expected-squash-message" \
160+
test_cmp "$TEST_DIRECTORY/t3437/expected-squash-message" \
161161
actual-squash-message
162162
'
163163

@@ -191,7 +191,7 @@ test_expect_success 'sequence squash, fixup & fixup -c gives combined message' '
191191
FAKE_LINES="1 squash 2 fixup 3 fixup_-c 4" \
192192
FAKE_MESSAGE_COPY=actual-combined-message \
193193
git -c commit.status=false rebase -i A &&
194-
test_i18ncmp "$TEST_DIRECTORY/t3437/expected-combined-message" \
194+
test_cmp "$TEST_DIRECTORY/t3437/expected-combined-message" \
195195
actual-combined-message &&
196196
test_cmp_rev HEAD^ A
197197
'
@@ -204,7 +204,7 @@ test_expect_success 'fixup -C works upon --autosquash with amend!' '
204204
--signoff A &&
205205
git diff-tree --exit-code --patch HEAD B3 -- &&
206206
test_cmp_rev HEAD^ A &&
207-
test_i18ncmp "$TEST_DIRECTORY/t3437/expected-squash-message" \
207+
test_cmp "$TEST_DIRECTORY/t3437/expected-squash-message" \
208208
actual-squash-message
209209
'
210210

t/t6300-for-each-ref.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,9 @@ test_failing_trailer_option () {
945945
test_expect_success "$title" '
946946
# error message cannot be checked under i18n
947947
test_must_fail git for-each-ref --format="%($option)" refs/heads/main 2>actual &&
948-
test_i18ncmp expect actual &&
948+
test_cmp expect actual &&
949949
test_must_fail git for-each-ref --format="%(contents:$option)" refs/heads/main 2>actual &&
950-
test_i18ncmp expect actual
950+
test_cmp expect actual
951951
'
952952
}
953953

@@ -966,7 +966,7 @@ test_expect_success 'if arguments, %(contents:trailers) shows error if colon is
966966
fatal: unrecognized %(contents) argument: trailersonly
967967
EOF
968968
test_must_fail git for-each-ref --format="%(contents:trailersonly)" 2>actual &&
969-
test_i18ncmp expect actual
969+
test_cmp expect actual
970970
'
971971

972972
test_expect_success 'basic atom: head contents:trailers' '

t/test-lib-functions.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,13 +1025,6 @@ test_cmp_bin () {
10251025
cmp "$@"
10261026
}
10271027

1028-
# Wrapper for test_cmp which used to be used for
1029-
# GIT_TEST_GETTEXT_POISON=false. Only here as a shim for other
1030-
# in-flight changes. Should not be used and will be removed soon.
1031-
test_i18ncmp () {
1032-
test_cmp "$@"
1033-
}
1034-
10351028
# Wrapper for grep which used to be used for
10361029
# GIT_TEST_GETTEXT_POISON=false. Only here as a shim for other
10371030
# in-flight changes. Should not be used and will be removed soon.

0 commit comments

Comments
 (0)