From fae66f41c548a8cd4ef2496bc83ab3a28fa125a4 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 8 Mar 2013 17:14:03 +1100 Subject: [PATCH] wait for upstream transfer to complete --- bin/tests/system/xfer/clean.sh | 1 + bin/tests/system/xfer/tests.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/bin/tests/system/xfer/clean.sh b/bin/tests/system/xfer/clean.sh index d1525222ea..48aa159137 100644 --- a/bin/tests/system/xfer/clean.sh +++ b/bin/tests/system/xfer/clean.sh @@ -23,6 +23,7 @@ rm -f dig.out.ns1 dig.out.ns2 dig.out.ns3 dig.out.ns4 rm -f dig.out.ns5 dig.out.ns6 dig.out.ns7 +rm -f dig.out.soa.ns3 rm -f axfr.out rm -f ns1/slave.db ns2/slave.db rm -f ns2/example.db ns2/tsigzone.db ns2/example.db.jnl diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index 5a6a186265..4b96c8fc3f 100644 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -126,6 +126,12 @@ status=`expr $status + $tmp` echo "I:testing ixfr-from-differences yes;" tmp=0 +for i in 0 1 2 3 4 5 6 7 8 9 +do + $DIG $DIGOPTS @10.53.0.3 -p 5300 +noall +answer soa example > dig.out.soa.ns3 + grep "1397051953" dig.out.soa.ns3 > /dev/null && break; + sleep 1 +done $DIG $DIGOPTS example. \ @10.53.0.3 axfr -p 5300 > dig.out.ns3 || tmp=1