]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Correct way allow_query test produces RNDC output
authorStephen Morris <stephen@isc.org>
Thu, 21 Dec 2017 18:15:50 +0000 (18:15 +0000)
committerStephen Morris <stephen@isc.org>
Thu, 22 Feb 2018 11:13:58 +0000 (11:13 +0000)
(cherry picked from commit 7f2d41d4c492962a0f30b34b326ed87c3c471186)

bin/tests/system/allow_query/tests.sh

index 994c9cff347c71d15819f2803cada7158dd367fe..9027277712698b482ee9df374d9bc822cf54f410 100644 (file)
@@ -55,8 +55,7 @@ SYSTEMTESTTOP=..
 DIGOPTS="+tcp +nosea +nostat +nocmd +norec +noques +noauth +noadd +nostats +dnssec -p ${PORT}"
 
 rndc_reload() {
-    RNDCOUT=`$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 2>&1`
-    echo_i "ns2 $RNDCOUT"
+    echo_i "`$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p ${CONTROLPORT} reload 2>&1 | sed 's/^/ns2 /'`"
 }
 
 status=0