]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
make test for nsec3param more robust
authorMark Andrews <marka@isc.org>
Fri, 27 Jun 2014 05:50:51 +0000 (15:50 +1000)
committerMark Andrews <marka@isc.org>
Fri, 27 Jun 2014 05:50:51 +0000 (15:50 +1000)
bin/tests/system/inline/tests.sh

index 330cf147f00a57ea5fd582e12833b3f0ae992b1d..f0c96ac95593ffdd6c94b9a1d0958ba7cccebff9 100755 (executable)
@@ -29,7 +29,7 @@ $RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 signing -nsec3param 1 0 0 - ns
 for i in 1 2 3 4 5 6 7 8 9 0
 do
        nsec3param=`$DIG +short @10.53.0.3 -p 5300 nsec3param nsec3.`
-       test -n "$nsec3param" && break
+       test "$nsec3param" = "1 0 0 -" && break
        sleep 1
 done
 
@@ -44,7 +44,7 @@ done
 for i in 1 2 3 4 5 6 7 8 9 0
 do
        nsec3param=`$DIG +short @10.53.0.3 -p 5300 nsec3param retransfer3.`
-       test -n "$nsec3param" && break
+       test "$nsec3param" = "1 0 0 -" && break
        sleep 1
 done