summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2018-03-06 16:19:59 +0100
committerGeorg Kunz <georg.kunz@ericsson.com>2018-03-06 16:38:26 +0000
commit189f27b7a90b6ddc74f1c3ede806e87d7548c539 (patch)
treed668342cc902f184b11e367271a56164761da91f /dovetail/run.py
parented4e729d8e61b8bbfad51f294dd170c6c680dc43 (diff)
Separate valid docker tags for functest and yardstick
Specifying separate valid docker tags for functest and yardstick for input validation. DOVETAIL-592 Change-Id: I3365cdbd9ab521bf1368750c3f34b6863b3f7ec8 Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index b2ba91d8..a615173b 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -112,18 +112,20 @@ def check_tc_result(testcase, logger):
def validate_input(input_dict, check_dict, logger):
- # for 'func_tag' and 'yard_tag' options
- func_tag = input_dict['func_tag']
- yard_tag = input_dict['yard_tag']
+ func_tag = input_dict['functest_tag']
+ yard_tag = input_dict['yardstick_tag']
# bott_tag = input_dict['bott_tag']
- valid_tag = check_dict['valid_docker_tag']
- if func_tag is not None and func_tag not in valid_tag:
- logger.error("The input option 'func_tag' can't be {}, "
- "valid values are {}.".format(func_tag, valid_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(1)
- if yard_tag is not None and yard_tag not in valid_tag:
- logger.error("The input option 'yard_tag' can't be {}, "
- "valid values are {}.".format(yard_tag, valid_tag))
+ 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(1)
# if bott_tag is not None and bott_tag not in valid_tag:
# logger.error("The input option 'bott_tag' can't be {}, "