tests: auto-set git-daemon port
[gitweb.git] / t / lib-git-daemon.sh
index 394b06b32f838463221e9c2f49380fd9eb08bb9d..1f22de260a2d456ee73d29f29b049fd5771e8ecc 100644 (file)
@@ -22,7 +22,7 @@ then
        test_done
 fi
 
-LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-'8121'}
+LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
 
 GIT_DAEMON_PID=
 GIT_DAEMON_DOCUMENT_ROOT_PATH="$PWD"/repo