allow for the set of ttls to be empty

(cherry picked from commit 44ef2206d7)
This commit is contained in:
Mark Andrews
2014-10-16 14:46:29 +11:00
parent 7d00852591
commit 8b5f53534c

View File

@@ -2140,7 +2140,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
@@ -2194,7 +2194,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