test-lib: add the '--stress' option to run a test repeatedly under load
[gitweb.git] / t / t5512-ls-remote.sh
index 32e722db2ed96f14b6ca4b0fe53636c719f57eb5..cd9e60632d09e5fd21255261be5de457dc7f409b 100755 (executable)
@@ -260,7 +260,7 @@ test_lazy_prereq GIT_DAEMON '
 # This test spawns a daemon, so run it only if the user would be OK with
 # testing with git-daemon.
 test_expect_success PIPE,JGIT,GIT_DAEMON 'indicate no refs in standards-compliant empty remote' '
-       JGIT_DAEMON_PORT=${JGIT_DAEMON_PORT-${this_test#t}} &&
+       test_set_port JGIT_DAEMON_PORT &&
        JGIT_DAEMON_PID= &&
        git init --bare empty.git &&
        >empty.git/git-daemon-export-ok &&