diff options
author | Mike Hommey <mh@glandium.org> | 2008-07-07 21:02:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-08 22:50:14 -0700 |
commit | 960862628256ca3272939db7973b030c2b6ba548 (patch) | |
tree | 5fed0af3192c18784447e1755076ebeaef9f0327 | |
parent | Fix http-push test (diff) | |
download | tgif-960862628256ca3272939db7973b030c2b6ba548.tar.xz |
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>
-rwxr-xr-x | t/t5540-http-push.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |