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>
Jeff King committed
Feb 10, 2014 at 14:16 UTC
c44132fcf383cf668d3764c6b7ad28ff034ee981
2 files changed
+1
-2
t/lib-git-daemon.sh
+1
-1
@@ -22,7 +22,7 @@ then
22
test_done
23
fi
24
25
-LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-'8121'}
25
+LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
26
27
GIT_DAEMON_PID=
28
GIT_DAEMON_DOCUMENT_ROOT_PATH="$PWD"/repo
t/t5570-git-daemon.sh
-1
@@ -3,7 +3,6 @@
3
test_description='test fetching over git protocol'
4
. ./test-lib.sh
5
6
-LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-5570}
6
. "$TEST_DIRECTORY"/lib-git-daemon.sh
7
start_git_daemon
8