mirror of https://github.com/zulip/zulip.git
Check provisioning status in tools/test-backend.
This commit is contained in:
parent
8bc027e71b
commit
10667b3cdb
|
@ -24,6 +24,11 @@ if __name__ == "__main__":
|
||||||
os.chdir(os.path.dirname(TOOLS_DIR))
|
os.chdir(os.path.dirname(TOOLS_DIR))
|
||||||
sys.path.insert(0, 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 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'
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'zproject.test_settings'
|
||||||
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
||||||
os.environ['PYTHONUNBUFFERED'] = 'y'
|
os.environ['PYTHONUNBUFFERED'] = 'y'
|
||||||
|
@ -119,6 +124,11 @@ if __name__ == "__main__":
|
||||||
else:
|
else:
|
||||||
suites = args
|
suites = args
|
||||||
|
|
||||||
|
ok, msg = get_provisioning_status()
|
||||||
|
if not ok:
|
||||||
|
print(msg)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if options.coverage:
|
if options.coverage:
|
||||||
import coverage
|
import coverage
|
||||||
cov = coverage.Coverage(omit="*/zulip-venv-cache/*")
|
cov = coverage.Coverage(omit="*/zulip-venv-cache/*")
|
||||||
|
|
Loading…
Reference in New Issue