summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script
diff options
context:
space:
mode:
authorYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-02-13 07:05:05 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-13 07:05:05 +0000
commit9c22cd768a161ec0eab4da24f40a4c626275c746 (patch)
tree334568ef2c3e95c15866bc43f05b8ad13ea12435 /testsuites/posca/testcase_script
parent9038727dee2e67f8facd75f8b498ca20a1e066c9 (diff)
parent78e069921d27d6ee916e8a037118c4e318ea8081 (diff)
Merge "Bug fix: yardstick result return no content"
Diffstat (limited to 'testsuites/posca/testcase_script')
-rw-r--r--testsuites/posca/testcase_script/posca_factor_system_bandwidth.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
index 54e2970b..4819fb45 100644
--- a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
+++ b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
@@ -42,7 +42,11 @@ def do_test(test_config, con_dic):
Task_id = Runner.Send_Data(test_dict, con_dic['runner_config'])
time.sleep(con_dic['test_config']['test_time'])
Data_Reply = Runner.Get_Reply(con_dic['runner_config'], Task_id)
- test_date = Data_Reply[con_dic['runner_config']['yardstick_testcase']][0]
+ try:
+ test_date =\
+ Data_Reply[con_dic['runner_config']['yardstick_testcase']][0]
+ except IndexError:
+ test_date = do_test(test_config, con_dic)
return test_date