summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib/gobgp.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-03 12:47:40 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-03 12:47:40 +0900
commitb37dff1ff97beadc6cd842b7e9f742da02fec7b5 (patch)
tree85e7da96ca4737ef2aac814e5db6627893b0e44d /test/scenario_test/lib/gobgp.py
parentb02f24e01213a19b92ebd96b703e0240fdf8d3ff (diff)
test: stretch timeout
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/lib/gobgp.py')
-rw-r--r--test/scenario_test/lib/gobgp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/scenario_test/lib/gobgp.py b/test/scenario_test/lib/gobgp.py
index 3b7ec5ba..1bfcf5fe 100644
--- a/test/scenario_test/lib/gobgp.py
+++ b/test/scenario_test/lib/gobgp.py
@@ -124,7 +124,7 @@ class GoBGPContainer(BGPContainer):
output = local(cmd, capture=True)
return json.loads(output)['info']['bgp_state']
- def wait_for(self, expected_state, peer, timeout=20):
+ def wait_for(self, expected_state, peer, timeout=120):
state = self.get_neighbor_state(peer)
y = colors.yellow
print y("{0}'s peer {1} state: {2}".format(self.router_id,
@@ -142,6 +142,8 @@ class GoBGPContainer(BGPContainer):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+ print '[localhost] local:', cmd
+
poll = select.epoll()
poll.register(process.stdout, select.POLLIN)