3450. [bug] Stop logfileconfig system test spam system logs.

[RT #32315]

Squashed commit of the following:

commit ad40744e2c7dc253b70857bb229def5dd194b418
Author: Mark Andrews <marka@isc.org>
Date:   Fri Jan 4 17:24:45 2013 +1100

    logfileconfig spams the system log files
This commit is contained in:
Mark Andrews
2013-01-06 07:56:10 +11:00
parent 016eea4c62
commit 25b95d31ce
6 changed files with 17 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ PIPEFILE="named_pipe"
SYMFILE="named_sym"
PIDFILE="${THISDIR}/${CONFDIR}/named.pid"
myRNDC="$RNDC -c ${THISDIR}/${CONFDIR}/rndc.conf"
myNAMED="$NAMED -c ${THISDIR}/${CONFDIR}/named.conf -m record,size,mctx -T clienttest -d 99 -U 4"
myNAMED="$NAMED -c ${THISDIR}/${CONFDIR}/named.conf -m record,size,mctx -T clienttest -T nosyslog -d 99 -U 4"
# Stop the server and run through a series of tests with various config
# files while controlling the stop/start of the server.
@@ -76,7 +76,7 @@ then
cp $DIRCONF named.conf
echo > named.run
$myRNDC reconfig
grep "invalid file" named.run > /dev/null 2>&1
grep "configuring logging: invalid file" named.run > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "I: testing directory as file succeeded (UNEXPECTED)"
@@ -98,7 +98,7 @@ then
cp $PIPECONF named.conf
echo > named.run
$myRNDC reconfig
grep "invalid file" named.run > /dev/null 2>&1
grep "configuring logging: invalid file" named.run > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "I: testing pipe file as log file succeeded (UNEXPECTED)"