]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
${ttl} must exist and be non null
authorMark Andrews <marka@isc.org>
Thu, 21 Feb 2019 00:14:54 +0000 (11:14 +1100)
committerMichał Kępień <michal@isc.org>
Mon, 11 Mar 2019 11:11:58 +0000 (12:11 +0100)
(cherry picked from commit dee1f1a49812169fc823428d6c5a3331e570612c)

bin/tests/system/dnssec/tests.sh

index dda755f9a15abae0e3f9f78f6d67bb1c830543d8..de4d42d94827b65f25d1599860797097c78293e3 100644 (file)
@@ -2795,10 +2795,10 @@ dig_with_answeropts expiring.example soa @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
-    [ "${ttl:-0}" -eq 300 ] || ret=1
+    [ "${ttl}" -eq 300 ] || ret=1
 done
 for ttl in ${ttls2:-0}; do
-    [ "${ttl:-0}" -le 60 ] || ret=1
+    [ "${ttl}" -le 60 ] || ret=1
 done
 n=$((n+1))
 test "$ret" -eq 0 || echo_i "failed"