summaryrefslogtreecommitdiff
path: root/t/t5512-ls-remote.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-03-25 05:54:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-25 06:23:44 (GMT)
commit5a85a25e3528cf94a89861800eb4b939408792e3 (patch)
treee8fb362362cf6b5ce18ca1bc38d492253093f3c0 /t/t5512-ls-remote.sh
parent274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925 (diff)
downloadgit-5a85a25e3528cf94a89861800eb4b939408792e3.zip
git-5a85a25e3528cf94a89861800eb4b939408792e3.tar.gz
git-5a85a25e3528cf94a89861800eb4b939408792e3.tar.bz2
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/t5512-ls-remote.sh')
-rwxr-xr-xt/t5512-ls-remote.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5512-ls-remote.sh b/t/t5512-ls-remote.sh
index 04b3540..08b98f1 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' '