]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
update check the correct resigning time is reported in zonestatus test to be more...
authorMark Andrews <marka@isc.org>
Mon, 7 Apr 2014 01:50:50 +0000 (11:50 +1000)
committerMark Andrews <marka@isc.org>
Mon, 7 Apr 2014 01:50:50 +0000 (11:50 +1000)
bin/tests/system/dnssec/tests.sh

index 13e61c41c72edb89edcc075c69ee3e8cd141be43..473e1f1e5a67e0dac21667e88a6b2db4739132e1 100644 (file)
@@ -2454,9 +2454,7 @@ time=`awk 'BEGIN { m["Jan"] = "01"; m["Feb"] = "02"; m["Mar"] = "03";
 $DIG $DIGOPTS +noall +answer $name @10.53.0.3 -p 5300 > dig.out.test$n
 expire=`awk '$4 == "RRSIG" { print $9 }' dig.out.test$n`
 inception=`awk '$4 == "RRSIG" { print $10 }' dig.out.test$n`
-t1=`echo "$time < $expire" | bc`
-t2=`echo "$time > $inception" | bc`
-[ "$t1" = 1 -a "$t2" = 1 ] || ret=1
+test "$time" "<" "$expire" -a "$time" ">" "$inception" || ret=1
 n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`