From eaed2bda9cccbabdc5ccf059a9836dbfa8e94731 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 2 Feb 2016 12:26:04 +1100 Subject: [PATCH] capture rndc output (cherry picked from commit 2d58f4aee2e78440633325c3a1351b4a08795344) --- bin/tests/system/addzone/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/addzone/tests.sh b/bin/tests/system/addzone/tests.sh index 0e9e46739b..a499b50ce2 100755 --- a/bin/tests/system/addzone/tests.sh +++ b/bin/tests/system/addzone/tests.sh @@ -251,7 +251,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`