1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-10 18:06:14 +02:00

tests: auto-set git-daemon port

A recent commit taught lib-httpd to always start apache on
the same port as the numbered tests. Let's do the same for
the git-daemon tests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2014-02-10 14:16:38 -05:00 committed by Junio C Hamano
parent 3bb486e439
commit c44132fcf3
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,7 @@ then
test_done
fi
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-'8121'}
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
GIT_DAEMON_PID=
GIT_DAEMON_DOCUMENT_ROOT_PATH="$PWD"/repo

View File

@ -3,7 +3,6 @@
test_description='test fetching over git protocol'
. ./test-lib.sh
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-5570}
. "$TEST_DIRECTORY"/lib-git-daemon.sh
start_git_daemon