2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

don't destroy evidence by cleaning the test directory

when a test fails
This commit is contained in:
Andreas Gustafsson 2000-11-22 18:31:27 +00:00
parent 5337a9e53c
commit b88cdaa99b

View File

@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: run.sh,v 1.33 2000/08/01 01:14:24 tale Exp $
# $Id: run.sh,v 1.34 2000/11/22 18:31:27 gson Exp $
#
# Run a system test.
@ -100,14 +100,15 @@ status=`expr $status + $?`
if [ $status != 0 ]; then
echo "R:FAIL"
# Don't clean up - we need the evidence.
else
echo "R:PASS"
fi
# Cleanup
if test -f $test/clean.sh
then
( cd $test && sh clean.sh "$@" )
# Clean up.
if test -f $test/clean.sh
then
( cd $test && sh clean.sh "$@" )
fi
fi
echo "E:$test:`date`"