mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
pulldown:
If the testsock.pl test fails, try 5 times (2 seconds between tries) in case a server took some time to fully free the port. (Appears to be an occasional problem on Solaris)
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
# $Id: start.sh,v 1.24 2000/07/07 18:25:08 bwelling Exp $
|
# $Id: start.sh,v 1.25 2000/07/10 22:49:46 mws Exp $
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start name servers for running system tests.
|
# Start name servers for running system tests.
|
||||||
@@ -28,16 +28,26 @@ test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
|
|||||||
|
|
||||||
test -d "$1" || { echo No test directory: "$1"; exit 1; }
|
test -d "$1" || { echo No test directory: "$1"; exit 1; }
|
||||||
|
|
||||||
if $PERL ./testsock.pl -p 5300
|
portup=0
|
||||||
then
|
testloop=0
|
||||||
:
|
while [ $portup == 0 ]
|
||||||
else
|
do
|
||||||
echo "$0: could not bind to server addresses, server still running?"
|
if $PERL ./testsock.pl -p 5300
|
||||||
echo "I:server sockets not available"
|
then
|
||||||
echo "R:FAIL"
|
portup=1
|
||||||
sh ./stop.sh $1
|
else
|
||||||
exit 1
|
echo "I:Couldn't bind to socket (yet)"
|
||||||
fi
|
sleep 2
|
||||||
|
testloop=`expr $testloop + 1`
|
||||||
|
if [ $testloop == 5 ]; then
|
||||||
|
echo "$0: could not bind to server addresses, still running?"
|
||||||
|
echo "I:server sockets not available"
|
||||||
|
echo "R:FAIL"
|
||||||
|
sh ./stop.sh $1
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cd $1
|
cd $1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user