summaryrefslogtreecommitdiff
path: root/t/t5540-http-push.sh
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2008-07-07 19:02:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-09 05:50:14 (GMT)
commit960862628256ca3272939db7973b030c2b6ba548 (patch)
tree5fed0af3192c18784447e1755076ebeaef9f0327 /t/t5540-http-push.sh
parent13b5481ed8309ced4b6435bf3956713651ea31d1 (diff)
downloadgit-960862628256ca3272939db7973b030c2b6ba548.zip
git-960862628256ca3272939db7973b030c2b6ba548.tar.gz
git-960862628256ca3272939db7973b030c2b6ba548.tar.bz2
Skip t5540-http-push test when USE_CURL_MULTI is undefined
When USE_CURL_MULTI is undefined, git http-push doesn't work, so it's useless to test it. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5540-http-push.sh')
-rwxr-xr-xt/t5540-http-push.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh
index ee63945..21dbb55 100755
--- a/t/t5540-http-push.sh
+++ b/t/t5540-http-push.sh
@@ -12,6 +12,13 @@ This test runs various sanity checks on http-push.'
ROOT_PATH="$PWD"
LIB_HTTPD_DAV=t
+if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
+then
+ say "skipping test, USE_CURL_MULTI is not defined"
+ test_done
+ exit
+fi
+
. ../lib-httpd.sh
if ! start_httpd >&3 2>&4