test-migrations: Fix missing exit status on error.

Previously this test was correctly detecting missing migrations, but
not causing the build to fail.
This commit is contained in:
Tim Abbott 2016-06-15 09:19:54 -07:00
parent f88e5b7438
commit 9e6b9dacf6
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ if ./manage.py makemigrations -e --dry-run; then
echo
echo 'ERROR: Migrations are not consistent with models! Fix with `./manage.py makemigrations`.'
echo
exit 1
else
echo "Success! Migrations are consistent with models."
fi