From 9e6b9dacf6f8fbf6142fc01974f837c45aa847a6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 15 Jun 2016 09:19:54 -0700 Subject: [PATCH] test-migrations: Fix missing exit status on error. Previously this test was correctly detecting missing migrations, but not causing the build to fail. --- tools/test-migrations | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test-migrations b/tools/test-migrations index 6ae4c9cb5a..807cb443ed 100755 --- a/tools/test-migrations +++ b/tools/test-migrations @@ -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