Browse Source

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.
maint
Jeff King 5 years ago
parent
commit
17f1c0b8c7
  1. 2
      t/lib-credential.sh

2
t/lib-credential.sh

@ -19,7 +19,7 @@ check() { @@ -19,7 +19,7 @@ check() {
false
fi &&
test_cmp expect-stdout stdout &&
test_cmp expect-stderr stderr
test_i18ncmp expect-stderr stderr
}

read_chunk() {

Loading…
Cancel
Save