aboutsummaryrefslogtreecommitdiffstats
path: root/func/args_handler.py
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-07 17:02:04 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-07 17:02:04 +0800
commit6105c711e5d83d30b5733e7fec49d29a91520c26 (patch)
tree9a46c06d938f26bd82e93ea3a00038be53d6db7c /func/args_handler.py
parentc7761e0760aaacb801478308b6774dccb33cbf2e (diff)
rename test_cases/ to test_plan/
JIRA: QTIP-131 Change-Id: I12c63b4f0ff0167073a0819bdb5d63ca0c6f06fb Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'func/args_handler.py')
-rw-r--r--func/args_handler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/func/args_handler.py b/func/args_handler.py
index 624f90c4..2eb79e29 100644
--- a/func/args_handler.py
+++ b/func/args_handler.py
@@ -20,14 +20,14 @@ def get_files_in_suite(suite_name, case_type='all'):
if case_type == 'all' else benchmark_list[case_type]
-def get_files_in_test_case(lab, suite_name, case_type='all'):
- test_case_all = os.listdir('./test_cases/{0}/{1}'.format(lab, suite_name))
+def get_files_in_test_plan(lab, suite_name, case_type='all'):
+ test_case_all = os.listdir('./test_plan/{0}/{1}'.format(lab, suite_name))
return test_case_all if case_type == 'all' else \
filter(lambda x: case_type in x, test_case_all)
def get_benchmark_path(lab, suit, benchmark):
- return './test_cases/{0}/{1}/{2}'.format(lab, suit, benchmark)
+ return './test_plan/{0}/{1}/{2}'.format(lab, suit, benchmark)
def check_suite(suite_name):
@@ -35,11 +35,11 @@ def check_suite(suite_name):
def check_lab_name(lab_name):
- return True if os.path.isdir('test_cases/' + lab_name) else False
+ return True if os.path.isdir('test_plan/' + lab_name) else False
def check_benchmark_name(lab, file, benchmark):
- return os.path.isfile('test_cases/' + lab + '/' + file + '/' + benchmark)
+ return os.path.isfile('test_plan/' + lab + '/' + file + '/' + benchmark)
def _get_f_name(test_case_path):