]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
the wrong variable was used to count the test cases in one place.
authorCurtis Blackburn <ckb@isc.org>
Fri, 8 Mar 2019 00:09:10 +0000 (16:09 -0800)
committerEvan Hunt <each@isc.org>
Fri, 8 Mar 2019 02:42:14 +0000 (18:42 -0800)
(cherry picked from commit 4f60a84e34bf272b47082dc59c6dd5501e4e3498)

bin/tests/system/statistics/tests.sh

index 1f552ca71f16f696c0740a153ecbc5627ee1783a..ce9d7eab1e42f4165629ae07a6f3c6687f6a3568 100644 (file)
@@ -145,8 +145,8 @@ n=`expr $n + 1`
 ret=0
 echo_i "checking that zones return their type ($n)"
 if $FEATURETEST --have-libxml2 && [ -x ${CURL} ] ; then
-    ${CURL} http://10.53.0.1:${EXTRAPORT1}/xml/v3/zones > curl.out.${t} 2>/dev/null || ret=1
-    grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN"><type>master</type>' curl.out.${t} > /dev/null || ret=1
+    ${CURL} http://10.53.0.1:${EXTRAPORT1}/xml/v3/zones > curl.out.${n} 2>/dev/null || ret=1
+    grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN"><type>master</type>' curl.out.${n} > /dev/null || ret=1
 else
     echo_i "skipping test as libxml2 and/or curl was not found"
 fi