]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove dependancy on libxml
authorMark Andrews <marka@isc.org>
Wed, 6 Mar 2019 23:09:33 +0000 (10:09 +1100)
committerMark Andrews <marka@isc.org>
Wed, 6 Mar 2019 23:57:42 +0000 (10:57 +1100)
(cherry picked from commit a9c47414b356742e3d7a758f18e90fee1a2c95fc)

bin/tests/system/statschannel/tests.sh

index a16a25b46e159708e80ce595cb82d0cde90dd7bd..74650e678526b7bf56816104f89a409d98e78e70 100644 (file)
@@ -181,13 +181,15 @@ echo_i "checking consistency between regular and compressed output ($n)"
 if [ "$HAVEXMLSTATS" ];
 then
        URL=http://10.53.0.2:${EXTRAPORT1}/xml/v3/server
+       filter_str='s#<current-time>.*</current-time>##g'
 else
        URL=http://10.53.0.2:${EXTRAPORT1}/json/v1/server
+       filter_str='s#"current-time.*",##g'
 fi
 $CURL -D regular.headers $URL 2>/dev/null | \
-       sed -e "s#<current-time>.*</current-time>##g" > regular.out
+       sed -e "$filter_str" > regular.out
 $CURL -D compressed.headers --compressed $URL 2>/dev/null | \
-       sed -e "s#<current-time>.*</current-time>##g" > compressed.out
+       sed -e "$filter_str" > compressed.out
 $DIFF regular.out compressed.out >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`