Skip to content

Commit c44132f

Browse files
peffgitster
authored andcommitted
tests: auto-set git-daemon port
A recent commit taught lib-httpd to always start apache on the same port as the numbered tests. Let's do the same for the git-daemon tests. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3bb486e commit c44132f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

t/lib-git-daemon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ then
2222
test_done
2323
fi
2424

25-
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-'8121'}
25+
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
2626

2727
GIT_DAEMON_PID=
2828
GIT_DAEMON_DOCUMENT_ROOT_PATH="$PWD"/repo

t/t5570-git-daemon.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
test_description='test fetching over git protocol'
44
. ./test-lib.sh
55

6-
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-5570}
76
. "$TEST_DIRECTORY"/lib-git-daemon.sh
87
start_git_daemon
98

0 commit comments

Comments
 (0)