]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
capture rndc output
authorMark Andrews <marka@isc.org>
Tue, 2 Feb 2016 01:26:04 +0000 (12:26 +1100)
committerMark Andrews <marka@isc.org>
Tue, 2 Feb 2016 01:26:23 +0000 (12:26 +1100)
(cherry picked from commit 2d58f4aee2e78440633325c3a1351b4a08795344)

bin/tests/system/addzone/tests.sh

index 04befef9685bff1706bfb10a28a69515606ca054..e8fc366e7b6840f6a6d3d67aa0719e5595e9a1ac 100755 (executable)
@@ -356,7 +356,8 @@ status=`expr $status + $ret`
 
 echo "I:attempting to delete a policy zone ($n)"
 ret=0
-$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 delzone 'policy in internal' 2>&1 | grep 'cannot be deleted' > /dev/null || ret=1
+$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 delzone 'policy in internal' 2> rndc.out.ns2.$n >&1
+grep 'cannot be deleted' rndc.out.ns2.$n > /dev/null || ret=1
 n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`