]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
allow for the set of ttls to be empty
authorMark Andrews <marka@isc.org>
Thu, 16 Oct 2014 03:46:29 +0000 (14:46 +1100)
committerMark Andrews <marka@isc.org>
Thu, 16 Oct 2014 03:46:44 +0000 (14:46 +1100)
bin/tests/system/dnssec/tests.sh

index 243a7ca0a25e985b95f3f69e3dc7a53a581cc24e..51e1193651527d14aeb68ac78e5cf62e42f8b8c9 100644 (file)
@@ -2359,7 +2359,7 @@ $DIG +noall +additional +dnssec +cd -p 5300 expiring.example mx @10.53.0.4 > dig
 $DIG +noall +additional +dnssec -p 5300 expiring.example mx @10.53.0.4 > dig.out.ns4.2.$n
 ttls=`awk '$1 != ";;" {print $2}' dig.out.ns4.1.$n`
 ttls2=`awk '$1 != ";;" {print $2}' dig.out.ns4.2.$n`
-for ttl in ${ttls:-0}; do
+for ttl in ${ttls:-300}; do
     [ ${ttl:-0} -eq 300 ] || ret=1
 done
 for ttl in ${ttls2:-0}; do
@@ -2413,7 +2413,7 @@ $DIG +noall +additional +dnssec +cd -p 5300 expiring.example mx @10.53.0.4 > dig
 $DIG +noall +additional +dnssec -p 5300 expiring.example mx @10.53.0.4 > dig.out.ns4.2.$n
 ttls=`awk '$1 != ";;" {print $2}' dig.out.ns4.1.$n`
 ttls2=`awk '$1 != ";;" {print $2}' dig.out.ns4.2.$n`
-for ttl in ${ttls:-0}; do
+for ttl in ${ttls:-300}; do
     [ $ttl -eq 300 ] || ret=1
 done
 for ttl in ${ttls2:-0}; do