]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/lib-credential: use test_i18ncmp to check stderr
authorJeff King <peff@peff.net>
Wed, 11 Mar 2020 22:11:37 +0000 (18:11 -0400)
committerJeff King <peff@peff.net>
Thu, 12 Mar 2020 06:55:17 +0000 (02:55 -0400)
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.

t/lib-credential.sh

index 937b831ea675230c1e0fbe8ba7ebb3004de71b3b..bb88cc01087ba153ff57e856764c59d39b0f320f 100755 (executable)
@@ -19,7 +19,7 @@ check() {
                false
        fi &&
        test_cmp expect-stdout stdout &&
-       test_cmp expect-stderr stderr
+       test_i18ncmp expect-stderr stderr
 }
 
 read_chunk() {