]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] fix bad test output when server fails
authorEvan Hunt <each@isc.org>
Thu, 25 Jul 2013 18:15:53 +0000 (11:15 -0700)
committerEvan Hunt <each@isc.org>
Thu, 25 Jul 2013 18:15:53 +0000 (11:15 -0700)
bin/tests/system/dlzexternal/tests.sh

index b7cc3bbb26bef8212b1f10fd11d9cfc2becf62f2..54b7da82e031c2f12bd84626114185abe248901f 100644 (file)
@@ -54,8 +54,8 @@ status=`expr $status + $ret`
 
 echo "I:testing passing client info into DLZ driver"
 ret=0
-out=`$DIG $DIGOPTS +short -t txt -q source-addr.example.nil`
-addr=`eval echo $out | cut -f1 -d'#'`
+out=`$DIG $DIGOPTS +short -t txt -q source-addr.example.nil | grep -v '^;'`
+addr=`eval echo "$out" | cut -f1 -d'#'`
 [ "$addr" = "10.53.0.1" ] || ret=1
 [ "$ret" -eq 0 ] || echo "I:failed"
 status=`expr $status + $ret`