You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/07/29 07:38:58 UTC
svn commit: r1507946 -
/subversion/trunk/subversion/tests/cmdline/davautocheck.sh
Author: danielsh
Date: Mon Jul 29 05:38:58 2013
New Revision: 1507946
URL: http://svn.apache.org/r1507946
Log:
davautocheck.sh: reuse the same port number when stopping a previous instance.
* subversion/tests/cmdline/davautocheck.sh:
Stop the previous instance before choosing an available port.
Modified:
subversion/trunk/subversion/tests/cmdline/davautocheck.sh
Modified: subversion/trunk/subversion/tests/cmdline/davautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/davautocheck.sh?rev=1507946&r1=1507945&r2=1507946&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/davautocheck.sh Mon Jul 29 05:38:58 2013
@@ -315,6 +315,9 @@ if [ ${USE_SSL:+set} ]; then
|| fail "SSL module not found"
fi
+# Stop any previous instances, os we can re-use the port.
+if [ -x $STOPSCRIPT ]; then $STOPSCRIPT ; sleep 1; fi
+
HTTPD_PORT=3691
while netstat -an | grep $HTTPD_PORT | grep 'LISTEN' >/dev/null; do
HTTPD_PORT=$(( HTTPD_PORT + 1 ))
@@ -503,7 +506,6 @@ RedirectMatch ^/svn-test-work/
__EOF__
START="$HTTPD -f $HTTPD_CFG"
-if [ -x $STOPSCRIPT ]; then $STOPSCRIPT ; fi
printf \
'#!/bin/sh
if [ -d "%s" ]; then