t1400: avoid "test" string comparisons
authorJeff King <redacted>
Sat, 25 Jan 2020 00:06:24 +0000 (19:06 -0500)
committerJunio C Hamano <redacted>
Tue, 28 Jan 2020 22:41:39 +0000 (14:41 -0800)
commite5d7b2f65cadf9caa2097083b3bed4f6bce32fb9
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t1400-update-ref.sh
git clone https://git.99rst.org/PROJECT