summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfumihiko kakuma <kakuma@valinux.co.jp>2016-11-02 18:02:24 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-24 15:14:35 +0900
commit5c5345e78c1eb8d937216b155f3ffa8b8f905959 (patch)
treef835987760d1305b283cdd8ad02b55c5880e41af
parent580f04d8a9f8017eb22e3d6fb9c736cabc3c9332 (diff)
scenario test: Fix the wrong retry check in command execution
Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/integrated/common/docker_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/tests/integrated/common/docker_base.py b/ryu/tests/integrated/common/docker_base.py
index fb810848..1cb7cbb6 100644
--- a/ryu/tests/integrated/common/docker_base.py
+++ b/ryu/tests/integrated/common/docker_base.py
@@ -133,7 +133,7 @@ class Command(object):
if out.returncode == 0:
return out
LOG.error(out.stderr)
- if try_times + 1 >= try_times:
+ if i + 1 >= try_times:
break
time.sleep(interval)
raise CommandError(out)