test-migrations: Add django_two_factor migrations to exclude list.

We don't control the names for these migrations.
This commit is contained in:
Tim Abbott 2018-05-03 12:23:25 -07:00
parent 42fe331093
commit bd110ccb3c
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ echo 'Testing whether migrations are consistent with models'
new_auto_named_migrations=$(./manage.py showmigrations \
| grep -E ' [0-9]{4}_auto_' \
| grep -Eve ' [0-9]{4}_auto_201[67]' \
-e ' 0052_auto_fix_realmalias_realm_nullable' \
-e ' 0052_auto_fix_realmalias_realm_nullable' \
-e ' 0003_auto_20150817_1733' \
-e ' 0002_auto_20150110_0810' \
|| true)
if [ "$new_auto_named_migrations" != "" ]; then
echo "ERROR: New migrations with unclear automatically generated names."