diff options
Diffstat (limited to 'result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py')
-rw-r--r-- | result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py b/result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py index 4f022d5..4df4b50 100644 --- a/result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py +++ b/result_collection_api/opnfv_testapi/dashboard/yardstick2Dashboard.py @@ -16,7 +16,6 @@ # Fio, Lmbench, Perf, Cyclictest. # - def get_yardstick_cases(): """ get the list of the supported test cases @@ -33,8 +32,8 @@ def format_yardstick_for_dashboard(case, results): then build the call to the specific method """ if check_yardstick_case_exist(case): - cmd = "format_" + case + "_for_dashboard(results)" - res = eval(cmd) + cmd = "format_" + case + "_for_dashboard" + res = globals()[cmd](results) else: res = [] print "Test cases not declared" |