datatracker/test/test-teardown
2007-06-01 17:01:32 +00:00

23 lines
479 B
Bash
Executable file

#!/bin/bash
#
# This script expects to be started by a Buildbot slave with PWD set to the build
# directory.
# Script Setup
# ============
program=${0##*/}
progdir=${0%/*}
build=$PWD
. $progdir/shell-utils
# Database Cleanup
# Make sure the test database has been removed
if echo "show databases;" | python ietf/manage.py dbshell | grep test_ietf; then
echo "drop database test_ietf;" | python ietf/manage.py dbshell
echo "test database removed."
fi
exit $warnings