summaryrefslogtreecommitdiffstats
path: root/dovetail
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-07-12 22:17:39 -0400
committerGeorg Kunz <georg.kunz@ericsson.com>2018-07-13 12:10:20 +0000
commitedf504a4071b1d9300f72c5d83a22cda3bf2dc67 (patch)
treeb57b68b79792fe2607104170e2acf7a7231f8ced /dovetail
parent6dbc1a9452d6c8451f759b7be73ac3986f6f4fd4 (diff)
Remove the yardstick_tag and functest_tag
These 2 commands can't work now. Also there is no need to support them, so remove them. JIRA: DOVETAIL-695 Change-Id: I6707c7fc1d19fe06690cd14ef39f9d421d00a2bc Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail')
-rwxr-xr-xdovetail/run.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 4f643758..b57f9eed 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -74,28 +74,6 @@ def run_test(testcase_list, logger):
return duration
-def validate_input(input_dict, check_dict, logger):
- func_tag = input_dict['functest_tag']
- yard_tag = input_dict['yardstick_tag']
- # bott_tag = input_dict['bott_tag']
- valid_functest_tags = check_dict['valid_functest_tags']
- valid_yardstick_tags = check_dict['valid_yardstick_tags']
- if func_tag is not None and func_tag not in valid_functest_tags:
- logger.error("The input option 'functest_tag' can't be '{}', "
- "valid values are {}.".format(func_tag,
- valid_functest_tags))
- raise SystemExit(EXIT_RUN_FAILED)
- if yard_tag is not None and yard_tag not in valid_yardstick_tags:
- logger.error("The input option 'yardstick_tag' can't be '{}', "
- "valid values are {}.".format(yard_tag,
- valid_yardstick_tags))
- raise SystemExit(EXIT_RUN_FAILED)
- # if bott_tag is not None and bott_tag not in valid_tag:
- # logger.error("The input option 'bott_tag' can't be {}, "
- # "valid values are {}.".format(bott_tag, valid_tag))
- # raise SystemExit(1)
-
-
def filter_config(input_dict, logger):
cli_dict = dt_cfg.dovetail_config['cli']
configs = {}
@@ -217,7 +195,6 @@ def check_hosts_file(logger):
def parse_cli(logger=None, **kwargs):
- validate_input(kwargs, dt_cfg.dovetail_config['validate_input'], logger)
configs = filter_config(kwargs, logger)
if configs is not None:
dt_cfg.update_config(configs)