Commit 22b97338 by Feanil Patel

Create the test database if it doesn't exist.

There is a bootstrapping case where the test DB doesn't exist which causes reset_db to fail.
parent c9a63657
......@@ -24,6 +24,9 @@
DB_CACHE_DIR="common/test/db_cache"
# Ensure the test database exists.
echo "CREATE DATABASE IF NOT EXISTS test;" | mysql -u root
# Clear out the test database
./manage.py lms --settings bok_choy reset_db --traceback --noinput
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment