From 10667b3cdb8c73fbec89bf293bf7424dbd35fd76 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 15 Oct 2016 08:11:01 -0700 Subject: [PATCH] Check provisioning status in tools/test-backend. --- tools/test-backend | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/test-backend b/tools/test-backend index 8af7baa96a..54bff33a9d 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -24,6 +24,11 @@ if __name__ == "__main__": os.chdir(os.path.dirname(TOOLS_DIR)) sys.path.insert(0, os.path.dirname(TOOLS_DIR)) from zerver.lib.test_fixtures import is_template_database_current + + from tools.lib.test_script import ( + get_provisioning_status, + ) + os.environ['DJANGO_SETTINGS_MODULE'] = 'zproject.test_settings' # "-u" uses unbuffered IO, which is important when wrapping it in subprocess os.environ['PYTHONUNBUFFERED'] = 'y' @@ -119,6 +124,11 @@ if __name__ == "__main__": else: suites = args + ok, msg = get_provisioning_status() + if not ok: + print(msg) + sys.exit(1) + if options.coverage: import coverage cov = coverage.Coverage(omit="*/zulip-venv-cache/*")