diff --git a/bin/tests/system/dlzexternal/tests.sh b/bin/tests/system/dlzexternal/tests.sh index b7cc3bbb26..54b7da82e0 100644 --- a/bin/tests/system/dlzexternal/tests.sh +++ b/bin/tests/system/dlzexternal/tests.sh @@ -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`