From: Christos Sfakianakis <csfakian(a)redhat.com>
Replace 'EN10MB', 'Ethernet', and '262144' with wildcards
in ignore_exprs to lessen the hardcoded content.
Signed-off-by: Christos Sfakianakis <csfakian(a)redhat.com>
---
lnst/Tests/PacketAssert.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Tests/PacketAssert.py b/lnst/Tests/PacketAssert.py
index 20e3fb7..9452a4f 100644
--- a/lnst/Tests/PacketAssert.py
+++ b/lnst/Tests/PacketAssert.py
@@ -40,7 +40,7 @@ class PacketAssert(BaseTestModule):
def _is_real_err(self, err):
ignore_exprs = [r"tcpdump: verbose output suppressed, use -v or -vv for full
protocol decode",
- r"listening on %s, link-type EN10MB \(Ethernet\), capture
size 262144 bytes" %
+ r"listening on %s, link-type .* \(.*\), capture size [0-9]*
bytes" %
self.params.interface.name, r"\d+ packets captured",
r"\d+ packets received by filter", r"\d+ packets
dropped by kernel"]
--
2.17.1