]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5512-ls-remote.sh
t5512: don't use `test_must_fail test_cmp`
authorDenton Liu <liu.denton@gmail.com>
Wed, 25 Mar 2020 05:54:48 +0000 (01:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2020 06:23:44 +0000 (23:23 -0700)
commit5a85a25e3528cf94a89861800eb4b939408792e3
treee8fb362362cf6b5ce18ca1bc38d492253093f3c0
parent274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925
t5512: don't use `test_must_fail test_cmp`

The test_must_fail function should only be used for git commands since
we should assume that external commands work sanely. Since test_cmp() just
wraps an external command, replace `test_must_fail test_cmp` with
`! test_cmp`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5512-ls-remote.sh