From 53f5312b50d1e7eb5f65f827e6f7d6737e4d6348 Mon Sep 17 00:00:00 2001 From: liyin Date: Fri, 2 Dec 2016 14:14:54 +0800 Subject: 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 --- testsuites/posca/testcase_script/common_script.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuites/posca/testcase_script') 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") -- cgit 1.2.3-korg