summaryrefslogtreecommitdiffstats
path: root/t/lib-git-daemon.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 22:49:56 +0100
committerJunio C Hamano <gitster@pobox.com>2019-01-18 22:49:56 +0100
commit3fe47ff44441de609d76fcd2dd510f66b6d84353 (patch)
treea193c37b3414ee133058e3c34ce3901c6fabfb70 /t/lib-git-daemon.sh
parentMerge branch 'rs/sha1-file-close-mapped-file-on-error' (diff)
parenttest-lib: add the '--stress' option to run a test repeatedly under load (diff)
downloadgit-3fe47ff44441de609d76fcd2dd510f66b6d84353.tar.xz
git-3fe47ff44441de609d76fcd2dd510f66b6d84353.zip
Merge branch 'sg/stress-test'
Flaky tests can now be repeatedly run under load with the "--stress" option. * sg/stress-test: test-lib: add the '--stress' option to run a test repeatedly under load test-lib-functions: introduce the 'test_set_port' helper function test-lib: set $TRASH_DIRECTORY earlier test-lib: consolidate naming of test-results paths test-lib: parse command line options earlier test-lib: parse options in a for loop to keep $@ intact test-lib: extract Bash version check for '-x' tracing test-lib: translate SIGTERM and SIGHUP to an exit
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 fd41229a8f..79db3b7ae5 100644
--- a/t/lib-git-daemon.sh
+++ b/t/lib-git-daemon.sh
@@ -28,7 +28,7 @@ then
test_skip_or_die $GIT_TEST_GIT_DAEMON "file system does not support FIFOs"
fi
-LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
+test_set_port LIB_GIT_DAEMON_PORT
GIT_DAEMON_PID=
GIT_DAEMON_DOCUMENT_ROOT_PATH="$PWD"/repo