From: Yu Yang (Gabriel) Date: Mon, 13 Feb 2017 07:05:05 +0000 (+0000) Subject: Merge "Bug fix: yardstick result return no content" X-Git-Tag: danube.1.RC1~20 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=bottlenecks.git;a=commitdiff_plain;h=9c22cd768a161ec0eab4da24f40a4c626275c746;hp=9038727dee2e67f8facd75f8b498ca20a1e066c9 Merge "Bug fix: yardstick result return no content" --- 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