2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

check that the lwresd server has started before querying it

(cherry picked from commit 661f1197a200bdd3d2411e9b02a46b93fb1fb083)
This commit is contained in:
Mark Andrews
2013-03-05 17:23:06 +11:00
parent ff95a25ed8
commit ab8ea5c51e
2 changed files with 13 additions and 1 deletions

View File

@@ -21,3 +21,4 @@
#
rm -f */named.memstats
rm -f dig.out
rm -f lwresd1/lwresd.run.resolv

View File

@@ -40,6 +40,11 @@ status=`expr $status + $ret`
echo "I:using resolv.conf"
ret=0
for i in 0 1 2 3 4 5 6 7 8 9
do
grep ' running$' lwresd1/lwresd.run > /dev/null && break
sleep 1
done
./lwtest || ret=1
if [ $ret != 0 ]; then
echo "I:failed"
@@ -48,11 +53,17 @@ status=`expr $status + $ret`
$PERL $SYSTEMTESTTOP/stop.pl . lwresd1
mv lwresd1/lwresd.run lwresd1/lwresd.run.resolv
$PERL $SYSTEMTESTTOP/start.pl . lwresd1 -- "-m record,size,mctx -c lwresd.conf -d 99 -g"
echo "I:using lwresd.conf"
ret=0
sleep 1 # allow lwresd to finish starting.
for i in 0 1 2 3 4 5 6 7 8 9
do
grep ' running$' lwresd1/lwresd.run > /dev/null && break
sleep 1
done
./lwtest || ret=1
if [ $ret != 0 ]; then
echo "I:failed"