]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Wait longer (up to 20 secs) for journal to be truncated
authorMark Andrews <marka@isc.org>
Mon, 18 May 2020 06:47:07 +0000 (16:47 +1000)
committerMark Andrews <marka@isc.org>
Mon, 18 May 2020 13:34:13 +0000 (23:34 +1000)
bin/tests/system/nsupdate/tests.sh

index 4c5b739113132f32fbf27f61b1c5b8922d3a4c60..f190f7f4105b316f67c281ce1b4207d7bbd84a07 100755 (executable)
@@ -842,14 +842,11 @@ size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->siz
 [ "$size" -gt 6000 ] || ret=1
 sleep 1
 $RNDCCMD 10.53.0.1 sync maxjournal.test
-for i in 1 2 3 4 5 6
-do
-    sleep 1
+check_size_lt_5000() (
     size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl`
-    [ "$size" -lt 5000 ] && break
-done
-size=`$PERL -e 'use File::stat; my $sb = stat(@ARGV[0]); printf("%s\n", $sb->size);' ns1/maxjournal.db.jnl`
-[ "$size" -lt 5000 ] || ret=1
+    [ "$size" -lt 5000 ]
+)
+retry_quiet 20 check_size_lt_5000 || ret=1
 [ $ret = 0 ] || { echo_i "failed"; status=1; }
 
 n=`expr $n + 1`