Skip to content

Commit 17f1c0b

Browse files
committed
t/lib-credential: use test_i18ncmp to check stderr
The credential tests have a "check" function which feeds some input to git-credential and checks the stdout and stderr. We look for exact matches in the output. For stdout, this makes sense; the output is the credential protocol. But for stderr, we may be showing various diagnostic messages, or the prompts fed to the askpass program, which could be translated. Let's mark them as such.
1 parent 9a6bbee commit 17f1c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib-credential.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ check() {
1919
false
2020
fi &&
2121
test_cmp expect-stdout stdout &&
22-
test_cmp expect-stderr stderr
22+
test_i18ncmp expect-stderr stderr
2323
}
2424

2525
read_chunk() {

0 commit comments

Comments
 (0)