]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
more robust I:waiting for transfers to complete
authorMark Andrews <marka@isc.org>
Wed, 1 Feb 2012 22:16:21 +0000 (22:16 +0000)
committerMark Andrews <marka@isc.org>
Wed, 1 Feb 2012 22:16:21 +0000 (22:16 +0000)
bin/tests/system/masterformat/tests.sh

index 7ee16821a3add2b4f70682b60c918e99a9c24fc4..d782f30571bb1aa8d52fe3249ca15f13bfac0c8e 100755 (executable)
@@ -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.10 2011/12/22 11:56:07 marka Exp $
+# $Id: tests.sh,v 1.10.20.1 2012/02/01 22:16:21 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -86,7 +86,11 @@ ret=0
 status=`expr $status + $ret`
 
 echo "I:waiting for transfers to complete"
-sleep 1
+for i in 0 1 2 3 4 5 6 7 8 9
+do
+       test -f ns2/transfer.db.raw -a -f ns2/transfer.db.txt  && break
+       sleep 1
+done
 
 echo "I:checking that slave was saved in raw format by default"
 ret=0