Commit 661f1197 authored by Mark Andrews's avatar Mark Andrews
Browse files

check that the lwresd server has started before querying it

parent f36aaa32
......@@ -21,3 +21,4 @@
#
rm -f */named.memstats
rm -f dig.out
rm -f lwresd1/lwresd.run.resolv
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment