From: liyin Date: Fri, 2 Dec 2016 06:14:54 +0000 (+0800) Subject: bug fix patch X-Git-Tag: danube.1.RC1~45 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F97%2F25397%2F1;p=bottlenecks.git bug fix patch JIRA: BOTTLENECK-114 this patch fix a problem that docker can't run because of lacking pyroute2. the way to solve it is add return value judgement to avoid circle return value error, is return relue when get into circle function Change-Id: I3af9abdb417abc5cf04c0e4db7eed576222bb1ea Signed-off-by: liyin --- diff --git a/testsuites/posca/testcase_script/common_script.py b/testsuites/posca/testcase_script/common_script.py index 063e1f3a..476968a5 100644 --- a/testsuites/posca/testcase_script/common_script.py +++ b/testsuites/posca/testcase_script/common_script.py @@ -88,6 +88,8 @@ def posca_get_reply(con_dic, task_id, time_test=1): if time_test == 10: print("yardstick time out") sys.exit() + reply_result_data = posca_get_reply(con_dic, task_id, time_test=time_test+1) + return(reply_result_data) posca_get_reply(con_dic, task_id, time_test=time_test+1) if reply_data["status"] == 2: print("yardstick error exit")