diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-19 17:52:30 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-19 17:52:30 +0800 |
commit | 6f2bd06f607190d54a1268ad6813b4bf501eac1f (patch) | |
tree | a8fbfbc053a84498c8b242cf0aa24b3cdd6a3a75 /utils/test/scripts/conf_utils.py | |
parent | c5a5ac59a33dacaaf47b210aee42c75f4459b273 (diff) |
only publish testcases appear in testcases.py to save time
JIRA: FUNCTEST-474
Change-Id: Icb9f2ceaaf87f6b18d2aa342f093fefb3598f719
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/scripts/conf_utils.py')
-rw-r--r-- | utils/test/scripts/conf_utils.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/test/scripts/conf_utils.py b/utils/test/scripts/conf_utils.py index e35d5ed10..cf9599858 100644 --- a/utils/test/scripts/conf_utils.py +++ b/utils/test/scripts/conf_utils.py @@ -6,15 +6,19 @@ with open('./testcases.yaml') as f: f.close() +def compose_format(fmt): + return 'format_' + fmt.strip() + + def get_format(project, case): testcases = testcases_yaml.get(project) if isinstance(testcases, list): for case_dict in testcases: if case_dict['name'] == case: - return 'format_' + case_dict['format'].strip() + return compose_format(case_dict['format']) return None if __name__ == '__main__': fmt = get_format('functest', 'vping_ssh') - print fmt
\ No newline at end of file + print fmt |