Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
make test: FIB add/update/delete - ip4 routes
[vpp.git]
/
test
/
framework.py
diff --git
a/test/framework.py
b/test/framework.py
index
c91f34f
..
2618b26
100644
(file)
--- a/
test/framework.py
+++ b/
test/framework.py
@@
-40,6
+40,13
@@
class _PacketInfo(object):
#: Store the copy of the former packet.
data = None
#: Store the copy of the former packet.
data = None
+ def __eq__(self, other):
+ index = self.index == other.index
+ src = self.src == other.src
+ dst = self.dst == other.dst
+ data = self.data == other.data
+ return index and src and dst and data
+
def pump_output(out, deque):
for line in iter(out.readline, b''):
def pump_output(out, deque):
for line in iter(out.readline, b''):