From: Pierangelo Masarati Date: Mon, 4 Sep 2006 08:29:47 +0000 (+0000) Subject: append logs X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~212 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d25dfcbe920cb9e44d4202c8e54bc6bd9625da10;p=openldap append logs --- diff --git a/tests/scripts/relay b/tests/scripts/relay index db98d0e8d1..3e1d95a414 100755 --- a/tests/scripts/relay +++ b/tests/scripts/relay @@ -17,8 +17,9 @@ echo "Using $RELAY backend..." echo "" echo "Starting slapd on TCP/IP port $PORT1..." +echo "======== Starting slapd with $RELAY backend ========" >> $LOG1 . $CONFFILTER $BACKEND $MONITORDB < $RELAYCONF > $CONF1 -$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 & +$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 & PID=$! if test $WAIT != 0 ; then echo PID $PID diff --git a/tests/scripts/test030-relay b/tests/scripts/test030-relay index 7f06f98e7f..413b0f25b8 100755 --- a/tests/scripts/test030-relay +++ b/tests/scripts/test030-relay @@ -73,6 +73,10 @@ fi echo "Testing virtual naming context mapping with $RELAYS backend(s)..." echo "" +tmpfile=savelog.log +if test -f $tmpfile ; then + rm -f $tmpfile +fi first=1 for RELAY in $RELAYS ; do RUNIT=yes @@ -92,11 +96,16 @@ for RELAY in $RELAYS ; do echo ">>>>> waiting for things to exit" test $KILLSERVERS != no && wait echo "" - + + mv -f $LOG1 $tmpfile rm -rf $TESTDIR fi mkdir -p $TESTDIR $DBDIR1 + + if test -f $tmpfile ; then + mv $tmpfile $LOG1 + fi . $SRCDIR/scripts/relay fi