test: stop tcpdump write buffering

Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
FUJITA Tomonori
2016-09-01 21:41:21 +09:00
parent 3cc9b5b5d3
commit bad9935cd2
+1 -1
View File
@@ -239,7 +239,7 @@ class Container(object):
interface = "eth0"
if not filename:
filename = '{0}.dump'.format(interface)
self.local("tcpdump -i {0} -w {1}/{2} {3}".format(interface, self.shared_volumes[0][1], filename, expr), detach=True)
self.local("tcpdump -U -i {0} -w {1}/{2} {3}".format(interface, self.shared_volumes[0][1], filename, expr), detach=True)
return '{0}/{1}'.format(self.shared_volumes[0][0], filename)
def stop_tcpdump(self):