summaryrefslogtreecommitdiffstats
path: root/func/args_handler.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-07 05:23:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-07 05:23:25 +0000
commit33d953b9c4a7ecada927af3b1666d15e3f389beb (patch)
treed42574772a29f9e22a189d5670b8988fbf690fbf /func/args_handler.py
parent16385d37f66e121d0ef045e679ade1fd1aec9afc (diff)
parent441a4a29f8841dac6596ef7b278e52e29b14dcd9 (diff)
Merge "Running a single benchmark as an option for user."
Diffstat (limited to 'func/args_handler.py')
-rw-r--r--func/args_handler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/func/args_handler.py b/func/args_handler.py
index 50d803eb..e27d37e7 100644
--- a/func/args_handler.py
+++ b/func/args_handler.py
@@ -38,6 +38,10 @@ def check_lab_name(lab_name):
return True if os.path.isdir('test_cases/' + lab_name) else False
+def check_benchmark_name(lab, file, benchmark):
+ return os.path.isfile('test_cases/' + lab + '/' + file + '/' + benchmark)
+
+
def _get_f_name(test_case_path):
return test_case_path.split('/')[-1]