summaryrefslogtreecommitdiff
path: root/t/lib-git-daemon.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-02-27 14:01:42 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-02-27 14:01:42 -0800
commitbd62e7c364fcce7f42862e3aebedffb1c7e24136 (patch)
treefc35557be6052d3fda9655926986b0b51ac22638 /t/lib-git-daemon.sh
parentMerge branch 'nd/reset-intent-to-add' (diff)
parenttests: auto-set git-daemon port (diff)
downloadtgif-bd62e7c364fcce7f42862e3aebedffb1c7e24136.tar.xz
Merge branch 'jk/test-ports'
Avoid having to assign port number to be used in tests manually. * jk/test-ports: tests: auto-set git-daemon port tests: auto-set LIB_HTTPD_PORT from test name
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 394b06b32f..1f22de260a 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