commit c5ede57453548b0ec39d233ebc76e671185ea3d0
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Fri Nov 23 16:03:35 2012 +0100
PacketCapture: Suppress tcpdump's error output
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
lnst/Common/PacketCapture.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lnst/Common/PacketCapture.py b/lnst/Common/PacketCapture.py
index 8cfad17..69ad5cb 100644
--- a/lnst/Common/PacketCapture.py
+++ b/lnst/Common/PacketCapture.py
@@ -50,8 +50,8 @@ class PacketCapture:
output_file = self._file
pcap_filter = self._filter
- self._cmd = "tcpdump -p -i %s -w %s \"%s\"" % (interface,
output_file,
- pcap_filter)
+ self._cmd = "tcpdump -p -i %s -w %s \"%s\" 2>/dev/null" %
\
+ (interface, output_file, pcap_filter)
def _execute_tcpdump(self):
""" Start tcpdump in the background """
Show replies by date