summaryrefslogtreecommitdiff
path: root/t/lib-git-daemon.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-18 21:49:56 (GMT)
commit3fe47ff44441de609d76fcd2dd510f66b6d84353 (patch)
treea193c37b3414ee133058e3c34ce3901c6fabfb70 /t/lib-git-daemon.sh
parent2c0a645d9e1f7442d17a9666e57d6e72b09bb51b (diff)
parentfb7d1e3ac8f823dd00a5760952a7f7a9788de473 (diff)
downloadgit-3fe47ff44441de609d76fcd2dd510f66b6d84353.zip
git-3fe47ff44441de609d76fcd2dd510f66b6d84353.tar.gz
git-3fe47ff44441de609d76fcd2dd510f66b6d84353.tar.bz2
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 fd41229..79db3b7 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