2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +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 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # 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. # Run a system test.
@@ -100,14 +100,15 @@ status=`expr $status + $?`
if [ $status != 0 ]; then if [ $status != 0 ]; then
echo "R:FAIL" echo "R:FAIL"
# Don't clean up - we need the evidence.
else else
echo "R:PASS" echo "R:PASS"
fi
# Cleanup # Clean up.
if test -f $test/clean.sh if test -f $test/clean.sh
then then
( cd $test && sh clean.sh "$@" ) ( cd $test && sh clean.sh "$@" )
fi
fi fi
echo "E:$test:`date`" echo "E:$test:`date`"