summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-31 21:17:13 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-31 21:17:13 +0900
commitd50f1fe374ca406625fea652ab0dfcc90eca24b3 (patch)
tree1a7e2bb209ac27e2023d697ca5bba9c6ef0f452a /test
parent4391b84862bab2e00dec197befec4b8d7a31cb4e (diff)
test: fix get_reachability()
the output of ping command changed? Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test')
-rw-r--r--test/lib/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/base.py b/test/lib/base.py
index f37c695d..b8a40050 100644
--- a/test/lib/base.py
+++ b/test/lib/base.py
@@ -552,7 +552,7 @@ class BGPContainer(Container):
while True:
res = self.local(cmd, capture=True)
print colors.yellow(res)
- if '1 packets received' in res and '0% packet loss':
+ if ('1 packets received' in res or '1 received' in res) and '0% packet loss' in res:
break
time.sleep(interval)
count += interval