From bc337a2f44ecee064f442afe6f774c4e0dbe9757 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 15 Feb 2012 01:23:33 +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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/masterformat/tests.sh b/bin/tests/system/masterformat/tests.sh index 5fc0845d27..b8d3cd1081 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.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`