summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2016-12-02 14:14:54 +0800
committerliyin <liyin11@huawei.com>2016-12-02 14:21:09 +0800
commit53f5312b50d1e7eb5f65f827e6f7d6737e4d6348 (patch)
treea78dd9f85473f89733a68c92ea7a8a805c9d62fa /testsuites/posca/testcase_script
parent344802365d02a5524a4dd1ea743adefdc8e943fb (diff)
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 <liyin11@huawei.com>
Diffstat (limited to 'testsuites/posca/testcase_script')
-rw-r--r--testsuites/posca/testcase_script/common_script.py2
1 files changed, 2 insertions, 0 deletions
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")