From d50f1fe374ca406625fea652ab0dfcc90eca24b3 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 31 Aug 2018 21:17:13 +0900 Subject: test: fix get_reachability() the output of ping command changed? Signed-off-by: FUJITA Tomonori --- test/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lib') 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 -- cgit v1.2.3