tools: Rename force argument to skip-provision-check

This commit renames --force argument used with various tests to
--skip-provision-check. As a consequence of this name change all other
files that set --force option for the test commands have been updated.

This change is done in order to provide more clarity for using this
option for runnning tests.

This commit addresses issue #17455.
This commit is contained in:
m-e-l-u-h-a-n
2021-03-03 01:29:19 +05:30
committed by Tim Abbott
parent ca515e5583
commit 911c5f19f1
13 changed files with 30 additions and 25 deletions

View File

@@ -24,9 +24,11 @@ parser = argparse.ArgumentParser(usage)
add_provision_check_override_param(parser)
options = parser.parse_args()
assert_provisioning_status_ok(options.force)
assert_provisioning_status_ok(options.skip_provision_check)
with test_server_running(force=options.force, external_host="zulipdev.com:9981"):
with test_server_running(
skip_provision_check=options.skip_provision_check, external_host="zulipdev.com:9981"
):
# Zerver imports should happen after `django.setup()` is run
# by the test_server_running decorator.
from zerver.lib.actions import do_create_user