]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix version tests
authorMark Andrews <marka@isc.org>
Fri, 27 Feb 2015 06:01:25 +0000 (17:01 +1100)
committerMark Andrews <marka@isc.org>
Fri, 27 Feb 2015 06:01:25 +0000 (17:01 +1100)
bin/tests/system/builtin/tests.sh

index 3f6185b3b680d6fa03190c1dd13456b0276571ca..fade511d7caef20a1f05458691f2e8a9e5858f12 100644 (file)
@@ -46,14 +46,14 @@ n=`expr $n + 1`
 ret=0
 echo "I:Checking that default version works for rndc ($n)"
 $RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 status > rndc.status.ns1.$n 2>&1
-grep "^version: $VERSION " rndc.status.ns1.$n > /dev/null || ret=1
+grep "^version: BIND $VERSION " rndc.status.ns1.$n > /dev/null || ret=1
 if [ $ret != 0 ] ; then echo I:failed; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`
 ret=0
 echo "I:Checking that custom version works for rndc ($n)"
 $RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 status > rndc.status.ns3.$n 2>&1
-grep "^version: $VERSION (this is a test of version) " rndc.status.ns3.$n > /dev/null || ret=1
+grep "^version: BIND $VERSION <id:.......> (this is a test of version)" rndc.status.ns3.$n > /dev/null || ret=1
 if [ $ret != 0 ] ; then echo I:failed; status=`expr $status + $ret`; fi
 
 n=`expr $n + 1`