mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
tools: Move registration of --force to test-scripts.py.
This commit moves --force option used with various tests to test-scripts.py to have it alongside the logic that does provisioning status assertion. This is a step towards providing more clarity over use of this argument with tests as asked in issue #17455.
This commit is contained in:
committed by
Tim Abbott
parent
b1a871f2e0
commit
ca515e5583
@@ -167,15 +167,15 @@ EXEMPT_FILES = {
|
||||
"static/js/zulip_test.js",
|
||||
}
|
||||
|
||||
from tools.lib.test_script import add_provision_check_override_param, assert_provisioning_status_ok
|
||||
|
||||
parser = argparse.ArgumentParser(USAGE)
|
||||
parser.add_argument("--coverage", action="store_true", help="Get coverage report")
|
||||
parser.add_argument("--force", action="store_true", help="Run tests despite possible problems.")
|
||||
add_provision_check_override_param(parser)
|
||||
parser.add_argument("args", nargs=argparse.REMAINDER)
|
||||
options = parser.parse_args()
|
||||
individual_files = options.args
|
||||
|
||||
from tools.lib.test_script import assert_provisioning_status_ok
|
||||
|
||||
assert_provisioning_status_ok(options.force)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user