bug fix patch 97/25397/1
authorliyin <liyin11@huawei.com>
Fri, 2 Dec 2016 06:14:54 +0000 (14:14 +0800)
committerliyin <liyin11@huawei.com>
Fri, 2 Dec 2016 06:21:09 +0000 (14:21 +0800)
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 <liyin11@huawei.com>
testsuites/posca/testcase_script/common_script.py

index 063e1f3..476968a 100644 (file)
@@ -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")