diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-31 11:07:40 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-08-31 11:23:30 +0800 |
commit | f5afb93a4a2ed9547757655c1405ef27fabed11b (patch) | |
tree | 96a8e2c693951be6d0d59271e881efbdb8a63ca5 /utils/functest_utils.py | |
parent | e1cf8564b1f06a64863ee463b817935ec58f834c (diff) |
unify testcases.yaml obtain process
hardcoded "''FUNCTEST_REPO + "/ci/testcases.yaml"''' appears wherever
testcases.yaml is needed, abstract a method to provide unified interface
JIRA: FUNCTEST-449
Change-Id: Ida8e3d90926d3e2245883a29f577ecb121bd5d6c
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/functest_utils.py')
-rw-r--r-- | utils/functest_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/functest_utils.py b/utils/functest_utils.py index 199088b9c..fb4d75638 100644 --- a/utils/functest_utils.py +++ b/utils/functest_utils.py @@ -381,7 +381,7 @@ def get_deployment_dir(logger=None): def get_criteria_by_test(testname): criteria = "" - file = FUNCTEST_REPO + "/ci/testcases.yaml" + file = get_testcases_file() tiers = tb.TierBuilder("", "", file) for tier in tiers.get_tiers(): for test in tier.get_tests(): @@ -463,3 +463,7 @@ def check_test_result(test_name, ret, start_time, stop_time): } return status, details + + +def get_testcases_file(): + return FUNCTEST_REPO + "/ci/testcases.yaml" |