{"thread":{"id":"14328","subject":"[PATCH] Skip t5540-http-push test when USE_CURL_MULTI is undefined","startedAt":"2008-07-07T19:02:50Z","lastAt":"2008-07-07T19:02:50Z","messageCount":1,"participants":["Mike Hommey"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"82481","messageId":"1215457370-24325-1-git-send-email-mh@glandium.org","threadId":"14328","inReplyTo":null,"subject":"[PATCH] Skip t5540-http-push test when USE_CURL_MULTI is undefined","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2008-07-07T19:02:50Z","receivedAt":"2008-07-07T19:02:50Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"When USE_CURL_MULTI is undefined, git http-push doesn't work, so it's\nuseless to test it.\n---\n\n I wasted too much time wondering why the 3rd and 4th tests were failing\n before realizing I was building against an ancient libcurl, thus having\n a non working git http-push. This would avoid other people to do the same.\n\n t/t5540-http-push.sh |    7 +++++++\n 1 files changed, 7 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh\nindex 6cd8b45..147ff98 100755\n--- a/t/t5540-http-push.sh\n+++ b/t/t5540-http-push.sh\n@@ -12,6 +12,13 @@ This test runs various sanity checks on http-push.'\n ROOT_PATH=\"$PWD\"\n LIB_HTTPD_DAV=t\n \n+if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]\n+then\n+\tsay \"skipping test, USE_CURL_MULTI is not defined\"\n+\ttest_done\n+\texit\n+fi\n+\n . ../lib-httpd.sh\n \n if ! start_httpd >&3 2>&4\n-- \n1.5.6.2.220.g44701\n"}]}