From: Kyr Shatskyy Date: Wed, 20 Mar 2019 17:09:45 +0000 (+0100) Subject: teuthology-suite: no default value for suite branch X-Git-Tag: 1.1.0~262^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1268%2Fhead;p=teuthology.git teuthology-suite: no default value for suite branch By default suite branch must be equal to ceph one. Signed-off-by: Kyr Shatskyy --- diff --git a/scripts/suite.py b/scripts/suite.py index ceb745355..abea69d70 100644 --- a/scripts/suite.py +++ b/scripts/suite.py @@ -68,7 +68,6 @@ Standard arguments: [default: qa] --suite-branch Use this suite branch instead of the ceph branch - [default: {default_suite_branch}] --suite-dir Use this alternative directory as-is when assembling jobs from yaml fragments. This causes to be ignored for scheduling @@ -144,7 +143,6 @@ Scheduler arguments: default_suite_repo=defaults('--suite-repo', config.get_ceph_qa_suite_git_url()), default_ceph_branch=defaults('--ceph-branch', 'master'), - default_suite_branch=defaults('--suite-branch', 'master'), default_teuthology_branch=defaults('--teuthology-branch', 'master'), ) diff --git a/teuthology/suite/__init__.py b/teuthology/suite/__init__.py index ce1980de3..488b104b3 100644 --- a/teuthology/suite/__init__.py +++ b/teuthology/suite/__init__.py @@ -54,6 +54,8 @@ def process_args(args): key = key.lstrip('--').replace('-', '_') # Rename the key if necessary key = rename_args.get(key) or key + if key == 'suite_branch': + value = value or override_arg_defaults('--suite-branch', None) if key == 'suite' and value is not None: value = normalize_suite_name(value) if key == 'suite_relpath' and value is None: