t: use test_might_fail() instead of manipulating exit code manually
commit83279748594cf1c7a38ebf518cd6b63cd3d8de37
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:41 +0000 (1 20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 19:38:04 +0000 (3 12:38 -0700)
tree72db4e9015b7facf2e653c3ab016efaadb5f3592
parente3331758f12da22f4103eec7efe1b5304a9be5e9
t: use test_might_fail() instead of manipulating exit code manually

These tests manually coerce the exit code of invoked commands to
"success" when they don't care if the command succeeds or fails since
failure of those commands should not cause the test to fail overall.
In doing so, they intentionally break the &&-chain. Modernize by
replacing manual exit code management with test_might_fail() and a
normal &&-chain.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1507-rev-parse-upstream.sh
t/t1700-split-index.sh
t/t4012-diff-binary.sh
t/t5400-send-pack.sh