git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Skip t5540-http-push test when USE_CURL_MULTI is undefined

From
Mike Hommey <mh@glandium.org>
Date
Jul 7, 2008, 19:02 UTC
Message-ID
<1215457370-24325-1-git-send-email-mh@glandium.org>

When USE_CURL_MULTI is undefined, git http-push doesn't work, so it's useless to test it. ---

 I wasted too much time wondering why the 3rd and 4th tests were failing
 before realizing I was building against an ancient libcurl, thus having
 a non working git http-push. This would avoid other people to do the same.
 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 6cd8b45..147ff98 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
-- 
1.5.6.2.220.g44701
Message 1 of 1 in “Skip t5540-http-push test when USE_CURL_MULTI is undefined”
  1. Skip t5540-http-push test when USE_CURL_MULTI is undefinedMike Hommey, Jul 7, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.