[master] add "rndc -r" to print result code

4115.	[func]		"rndc -r" now prints the result code (e.g.,
			ISC_R_SUCCESS, ISC_R_TIMEOUT, etc) after
			running the requested command. [RT #38913]
This commit is contained in:
Evan Hunt
2015-05-05 16:39:09 -07:00
parent 76fbdc591b
commit 9e804040a2
15 changed files with 464 additions and 36 deletions

View File

@@ -404,4 +404,11 @@ do
status=`expr $status + $ret`
done
echo "I:testing rndc -r (show result)"
ret=0
$RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf -r testgen 0 2>&1 > rndc.output || ret=1
grep "ISC_R_SUCCESS 0" rndc.output > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
exit $status