diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-11-09 21:12:22 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-11-12 21:22:06 -0800 |
commit | 718e8076ff4bb792e913ceec90bc6c656b129439 (patch) | |
tree | 076ba7b310e3f5e13eb3c7db69f751d7e377b6f5 /test/lib/base.py | |
parent | 4dbfc1bce4c31d637d9bc7aeb94793e5fd1e34e1 (diff) |
test: remove tcpdump usage in bgp_router_test.py
It's unreliable. Use monitor command instead.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test/lib/base.py')
-rw-r--r-- | test/lib/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index d23cc0d7..c37fe75d 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -232,11 +232,11 @@ class Container(object): self.ip_addrs.append((intf_name, ip_addr, bridge.name)) try_several_times(lambda :local(str(c))) - def local(self, cmd, capture=False, stream=False, detach=False): + def local(self, cmd, capture=False, stream=False, detach=False, tty=True): if stream: dckr = Client(timeout=120, version='auto') i = dckr.exec_create(container=self.docker_name(), cmd=cmd) - return dckr.exec_start(i['Id'], tty=True, stream=stream, detach=detach) + return dckr.exec_start(i['Id'], tty=tty, stream=stream, detach=detach) else: flag = '-d' if detach else '' return local('docker exec {0} {1} {2}'.format(flag, self.docker_name(), cmd), capture) |