set httpd port before sourcing lib-httpd
If LIB_HTTPD_PORT is not set already, lib-httpd will set it to the default 8111. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Clemens Buchacher committed
Oct 30, 2009 at 17:47 UTC
859d1fb427ca79d3c70a3806c892e4dd148701bf
1 file changed
+3
-4
t/t5540-http-push.sh
+3
-4
@@ -9,17 +9,16 @@ This test runs various sanity checks on http-push.'
9
10
. ./test-lib.sh
11
12
-ROOT_PATH="$PWD"
13
-LIB_HTTPD_DAV=t
14
-LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5540'}
15
-
12
if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
13
then
14
say "skipping test, USE_CURL_MULTI is not defined"
15
test_done
16
fi
17
18
+LIB_HTTPD_DAV=t
19
+LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5540'}
20
. "$TEST_DIRECTORY"/lib-httpd.sh
21
+ROOT_PATH="$PWD"
22
start_httpd
23
24
test_expect_success 'setup remote repository' '