test-lib-functions: introduce the 'test_set_port' helper function
[gitweb.git] / t / lib-git-daemon.sh
index f98de95c15b14aa4030c65d26e6270dc06088372..41eb1e3ae85b2601578bc4684ae806436ca315fd 100644 (file)
@@ -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