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>
Mike Hommey committed
Jul 7, 2008 at 21:02 UTC
960862628256ca3272939db7973b030c2b6ba548
1 file changed
+7
t/t5540-http-push.sh
+7
@@ -12,6 +12,13 @@ This test runs various sanity checks on http-push.'
12
ROOT_PATH="$PWD"
13
LIB_HTTPD_DAV=t
14
15
+if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
16
+then
17
+ say "skipping test, USE_CURL_MULTI is not defined"
18
+ test_done
19
+ exit
20
+fi
21
+
22
. ../lib-httpd.sh
23
24
if ! start_httpd >&3 2>&4