t1400: avoid "test" string comparisons
commite5d7b2f65cadf9caa2097083b3bed4f6bce32fb9
authorJeff King <peff@peff.net>
Sat, 25 Jan 2020 00:06:24 +0000 (24 19:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jan 2020 22:41:39 +0000 (28 14:41 -0800)
treeee795cef0e50926ae80d26e07286ae5b6b4e206c
parenta0ba80001a42eeacae94e3503c3e7d4bf7f2f2e1
t1400: avoid "test" string comparisons

Using the shell "test" here is inflexible, because we can't easily swap
it out for an i18n-aware version like we can with test_cmp and
test_i18ncmp. And it's not even saving us any processes, since we have
to use "cat" to get the output. So let's switch to using test_cmp, which
has the added bonus that it will produce better output if there's a
failure.

Note that not all of the changed outputs here are candidates for
translation, but I've converted all of them for consistency and to
benefit from the better output.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh