diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-03-25 01:54:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-24 23:23:44 -0700 |
commit | 5a85a25e3528cf94a89861800eb4b939408792e3 (patch) | |
tree | e8fb362362cf6b5ce18ca1bc38d492253093f3c0 /t | |
parent | Git 2.26 (diff) | |
download | tgif-5a85a25e3528cf94a89861800eb4b939408792e3.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5512-ls-remote.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh index 04b35402c7..08b98f12b8 100755 --- a/t/t5512-ls-remote.sh +++ b/t/t5512-ls-remote.sh @@ -92,7 +92,7 @@ test_expect_success 'use "origin" when no remote specified' ' test_expect_success 'suppress "From <url>" with -q' ' git ls-remote -q 2>actual_err && - test_must_fail test_cmp exp_err actual_err + ! test_cmp exp_err actual_err ' test_expect_success 'use branch.<name>.remote if possible' ' |