X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=2618b267706d065ca2f015d0519b05d16d9dde63;hb=refs%2Fchanges%2F51%2F4151%2F4;hp=c91f34f973ef9da508537b7a68bfe089c5513a83;hpb=82a06a9335d39068007206ad4946ff0e83aa269d;p=vpp.git diff --git a/test/framework.py b/test/framework.py index c91f34f973e..2618b267706 100644 --- a/test/framework.py +++ b/test/framework.py @@ -40,6 +40,13 @@ class _PacketInfo(object): #: 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''):