From 44ef2206d7c2e89b4312ec1f3bfb7a7dc1852f15 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 16 Oct 2014 14:46:29 +1100 Subject: [PATCH] allow for the set of ttls to be empty --- bin/tests/system/dnssec/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 243a7ca0a2..51e1193651 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -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