From b4941256c3d567b359bb5ad861a380429321d1f4 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Sat, 3 Mar 2012 19:57:22 +0100 Subject: [PATCH] t5801: skip without hg The tests for remote-hg require hg, so skip them all when there is no hg available. --- t/t5801-remote-hg.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t5801-remote-hg.sh b/t/t5801-remote-hg.sh index 18915ddb8c..2e68372d59 100755 --- a/t/t5801-remote-hg.sh +++ b/t/t5801-remote-hg.sh @@ -19,6 +19,12 @@ else test_done fi +if ! type hg >/dev/null 2>&1 +then + skip_all='skipping git remote-hg tests: requires hg' + test_done +fi + # Call cmp with the arguments -x ".hg" -x ".git" vcs_cmp () { -- 2.11.4.GIT