]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] fix bad test output when server fails
authorEvan Hunt <each@isc.org>
Thu, 25 Jul 2013 18:18:34 +0000 (11:18 -0700)
committerEvan Hunt <each@isc.org>
Thu, 25 Jul 2013 18:18:34 +0000 (11:18 -0700)
(cherry picked from commit 3cea62e3dfcbc9c47121aa6faffc54e9955fe778)

bin/tests/system/dlzexternal/tests.sh

index e8caddcd1b11900051dfbd3e5720ac54187e1cae..bd2eeac444d542de6f34fd2afec1d5df462d4372 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`