aboutsummaryrefslogtreecommitdiffstats
path: root/t/lib-httpd.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-18 13:49:56 -0800
committerJunio C Hamano <gitster@pobox.com>2019-01-18 13:49:56 -0800
commit3fe47ff44441de609d76fcd2dd510f66b6d84353 (patch)
treea193c37b3414ee133058e3c34ce3901c6fabfb70 /t/lib-httpd.sh
parent2c0a645d9e1f7442d17a9666e57d6e72b09bb51b (diff)
parentfb7d1e3ac8f823dd00a5760952a7f7a9788de473 (diff)
downloadgit-3fe47ff44441de609d76fcd2dd510f66b6d84353.tar.gz
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-httpd.sh')
-rw-r--r--t/lib-httpd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh
index a8729f8232..e465116ef9 100644
--- a/t/lib-httpd.sh
+++ b/t/lib-httpd.sh
@@ -82,7 +82,7 @@ case $(uname) in
esac
LIB_HTTPD_PATH=${LIB_HTTPD_PATH-"$DEFAULT_HTTPD_PATH"}
-LIB_HTTPD_PORT=${LIB_HTTPD_PORT-${this_test#t}}
+test_set_port LIB_HTTPD_PORT
TEST_PATH="$TEST_DIRECTORY"/lib-httpd
HTTPD_ROOT_PATH="$PWD"/httpd