diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 7a40bed6bc..c36edab648 100644 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/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.12.18.19 2011/11/27 12:08:28 marka Exp $ +# $Id: tests.sh,v 1.12.18.20 2011/12/12 06:52:10 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -960,7 +960,7 @@ status=`expr $status + $ret` # this confirms that key events are never scheduled more than # a given number of seconds into the future, and that the last -# event scheduled is precisely that far in the future. +# event scheduled is within 10 seconds of expected interval. check_interval () { awk '/next key event/ {print $2 ":" $9}' $1/named.run | sed 's/\.//g' | @@ -981,7 +981,8 @@ check_interval () { if (int(x) > int(interval)) exit (1); } - END { if (int(x) != int(interval)) exit(1) }' interval=$2 + END { if (int(x) > int(interval) || + int(x) < int(interval-10)) exit(1) }' interval=$2 return $? }