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>
maint
Clemens Buchacher 2009-10-30 17:47:45 -07:00 committed by Junio C Hamano
parent eeb3aeddb2
commit 859d1fb427
1 changed files with 3 additions and 4 deletions

View File

@ -9,17 +9,16 @@ This test runs various sanity checks on http-push.'


. ./test-lib.sh . ./test-lib.sh


ROOT_PATH="$PWD"
LIB_HTTPD_DAV=t
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5540'}

if git http-push > /dev/null 2>&1 || [ $? -eq 128 ] if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
then then
say "skipping test, USE_CURL_MULTI is not defined" say "skipping test, USE_CURL_MULTI is not defined"
test_done test_done
fi fi


LIB_HTTPD_DAV=t
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5540'}
. "$TEST_DIRECTORY"/lib-httpd.sh . "$TEST_DIRECTORY"/lib-httpd.sh
ROOT_PATH="$PWD"
start_httpd start_httpd


test_expect_success 'setup remote repository' ' test_expect_success 'setup remote repository' '