summaryrefslogtreecommitdiff
path: root/t/t5538-push-shallow.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-02-10 09:39:48 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-02-10 10:20:45 -0800
commit3bb486e4397415e1855e5edbf28d8e50c3d45265 (patch)
tree2bdb4dc4f21c937dc166e12f2cebcdf9ba7160e8 /t/t5538-push-shallow.sh
parentGit 1.9-rc2 (diff)
downloadtgif-3bb486e4397415e1855e5edbf28d8e50c3d45265.tar.xz
tests: auto-set LIB_HTTPD_PORT from test name
We set the default apache port for each of the httpd tests to the 4-digit test number of the test script. We want these to remain unique so that the tests do not conflict with each other when run in parallel. Instead of doing it manually in each test script, let's just set it from the test name at run time. This is simpler, and is one less thing to be updated when test scripts are renamed (e.g., when being re-rolled or when conflicting after being merged with another topic). Incidentally, this fixes a case where t5537 and t5538 used the same port number (5537), and could conflict with each other when run in parallel. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5538-push-shallow.sh')
-rwxr-xr-xt/t5538-push-shallow.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/t5538-push-shallow.sh b/t/t5538-push-shallow.sh
index 0a6e40f144..8e54ac5746 100755
--- a/t/t5538-push-shallow.sh
+++ b/t/t5538-push-shallow.sh
@@ -126,7 +126,6 @@ if test -n "$NO_CURL" -o -z "$GIT_TEST_HTTPD"; then
test_done
fi
-LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5537'}
. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd