X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest030-relay;h=72594760d832b673cf7180dc1ff25ab9bf937a90;hb=a5765f1785653cabe18419e710c5b2bf7723b892;hp=7f06f98e7f4ff74283a343846afef72b45adb90b;hpb=002b826c30f7b7f70b13dcb5da8409cda861142a;p=openldap diff --git a/tests/scripts/test030-relay b/tests/scripts/test030-relay index 7f06f98e7f..72594760d8 100755 --- a/tests/scripts/test030-relay +++ b/tests/scripts/test030-relay @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2006 The OpenLDAP Foundation. +## Copyright 1998-2012 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -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