From 5e501f3a876e65a384a70b0ce1168a04a36b9d06 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 15 Feb 2012 00:50:59 +0000 Subject: [PATCH] Loop 'I:checking that large rdatasets loaded' in case the zone transfer has not yet completed --- bin/tests/system/masterformat/tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/masterformat/tests.sh b/bin/tests/system/masterformat/tests.sh index 839ca578da..c53fc46d6e 100755 --- a/bin/tests/system/masterformat/tests.sh +++ b/bin/tests/system/masterformat/tests.sh @@ -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.13 2012/02/13 23:46:23 marka Exp $ +# $Id: tests.sh,v 1.14 2012/02/15 00:50:59 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -117,12 +117,17 @@ done status=`expr $status + $ret` 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`