From 960862628256ca3272939db7973b030c2b6ba548 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 7 Jul 2008 21:02:50 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- t/t5540-http-push.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh index ee63945c99..21dbb557b7 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 -- 2.11.4.GIT