[thread-cert] refactor case 5.2.5 using pktverify (#5798)

This commit is contained in:
Jing Ma
2020-11-16 22:28:21 -08:00
committed by GitHub
parent 9272e36f77
commit 1fc75aee9c
4 changed files with 209 additions and 30 deletions
+2 -1
View File
@@ -91,6 +91,7 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
USE_MESSAGE_FACTORY = True
TOPOLOGY = None
CASE_WIRESHARK_PREFS = None
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -288,7 +289,7 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
os.system(f"rm -f tmp/{PORT_OFFSET}_*.flash tmp/{PORT_OFFSET}_*.data tmp/{PORT_OFFSET}_*.swap")
def _verify_packets(self, test_info_path: str):
pv = PacketVerifier(test_info_path)
pv = PacketVerifier(test_info_path, self.CASE_WIRESHARK_PREFS)
pv.add_common_vars()
self.verify(pv)
print("Packet verification passed: %s" % test_info_path, file=sys.stderr)