aboutsummaryrefslogtreecommitdiff
path: root/t/lib-git-daemon.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-02-10 14:16:38 -0500
committerJunio C Hamano <gitster@pobox.com>2014-02-10 11:19:39 -0800
commitc44132fcf383cf668d3764c6b7ad28ff034ee981 (patch)
tree10c7f4f341f3d6014d1aee6638885ea79cfc821c /t/lib-git-daemon.sh
parent3bb486e4397415e1855e5edbf28d8e50c3d45265 (diff)
downloadgit-c44132fcf383cf668d3764c6b7ad28ff034ee981.tar.gz
git-c44132fcf383cf668d3764c6b7ad28ff034ee981.tar.xz
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>
Diffstat (limited to 't/lib-git-daemon.sh')
-rw-r--r--t/lib-git-daemon.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lib-git-daemon.sh b/t/lib-git-daemon.sh
index 394b06b32..1f22de260 100644
--- a/t/lib-git-daemon.sh
+++ b/t/lib-git-daemon.sh
@@ -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