From 486c763015bea6784a658cd1f629f03194d9233c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 18 Aug 2015 10:03:58 +1000 Subject: [PATCH] use grep rather than xmllint --- bin/tests/system/statistics/tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tests/system/statistics/tests.sh b/bin/tests/system/statistics/tests.sh index e82ee54a4b..faf7e481a3 100644 --- a/bin/tests/system/statistics/tests.sh +++ b/bin/tests/system/statistics/tests.sh @@ -121,11 +121,11 @@ n=`expr $n + 1` ret=0 n=`expr $n + 1` echo "I:checking that zones with slash are properly shown in XML output ($n)" -if [ -x ${CURL} -a -x ${XMLLINT} ] ; then +if [ -x ${CURL} ] ; then ${CURL} http://10.53.0.1:8053/xml/v3/zones > curl.out.${t} 2>/dev/null || ret=1 - ${XMLLINT} --xpath '//statistics/views/view/zones/zone[@name="32/1.0.0.127-in-addr.example"]' curl.out.${t} > /dev/null 2>&1 || ret=1 + grep '' curl.out.${t} > /dev/null || ret=1 else - echo "I:skipping test as curl and/or xmllint were not found" + echo "I:skipping test as curl was not found" fi if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret`