Skip to content

Commit

Permalink
tests: auto-set git-daemon port
Browse files Browse the repository at this point in the history
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 10, 2014
1 parent 3bb486e commit c44132f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion t/lib-git-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion t/t5570-git-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
test_description='test fetching over git protocol'
. ./test-lib.sh

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

Expand Down

0 comments on commit c44132f

Please sign in to comment.