Loop 'I:checking that large rdatasets loaded' in case the zone transfer has not yet completed

This commit is contained in:
Mark Andrews 2012-02-15 01:23:33 +00:00
parent c6e234306e
commit bc337a2f44

View file

@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.4.814.2 2012/02/14 23:46:29 tbox Exp $
# $Id: tests.sh,v 1.4.814.3 2012/02/15 01:23:33 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@ -54,7 +54,7 @@ exit $status
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.4.814.2 2012/02/14 23:46:29 tbox Exp $
# $Id: tests.sh,v 1.4.814.3 2012/02/15 01:23:33 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@ -77,12 +77,17 @@ done
diff dig.out.1 dig.out.2 || status=1
echo "I:checking that large rdatasets loaded"
for i in 0 1 2 3 4 5 6 7 8 9
do
ret=0
for a in a b c
do
$DIG +tcp txt ${a}.large @10.53.0.2 -p 5300 > dig.out
grep "status: NOERROR" dig.out > /dev/null || ret=1
done
[ $ret -eq 0 ] && break
sleep 1
done
[ $ret -eq 0 ] || echo "I:failed"
status=`expr $status + $ret`