#!/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 # Release database update lock LOCKDIR=$build/test/update-db.lock rm -rf $LOCKDIR exit $warnings