t5405: use test_must_fail() instead of checking exit code manually
commitfbd6ef273e1d1d88a4056b986bd8a331cc61ea39
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:46 +0000 (1 20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 19:38:04 +0000 (3 12:38 -0700)
tree15bce853dc8e3355e5d4d19fb2776db6efa312a4
parente5d7e9f5164e90386622a80a9dfc4b1675bcc92b
t5405: use test_must_fail() instead of checking exit code manually

This test expects "git push" to fail, thus it manually inverts that
local expected failure into a successful exit code for the test overall.
In doing so, it intentionally breaks the &&-chain. Modernize by
replacing manual exit code management with test_must_fail() and a normal
&&-chain.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5405-send-pack-rewind.sh