From f97d9c7de59a741ae4a69adbe23d29ac1a8f4d55 Mon Sep 17 00:00:00 2001 From: whd <7058128+superwhd@users.noreply.github.com> Date: Wed, 12 May 2021 03:54:28 +0800 Subject: [PATCH] [github-actions] fix MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py (#6608) The test case failed because pktverify failed to find an ACK packet sent to TD. However, TD_RLOC has changed during the test while we were using the latter RLOC to verify the packet. Therefore it wasn't able to find the packet. For this test case, we can verify the existence of that ACK packet using the source address of its according CON packet. --- .../MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/thread-cert/border_router/MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py b/tests/scripts/thread-cert/border_router/MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py index 65d8f1d16..0900417cf 100644 --- a/tests/scripts/thread-cert/border_router/MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py +++ b/tests/scripts/thread-cert/border_router/MATN_15_ChangeOfPrimaryBBRTriggersRegistration.py @@ -181,7 +181,7 @@ class MATN_15_ChangeOfPrimaryBBRTriggersRegistration(thread_cert.TestCase): # Where the payload contains: # Status TLV: ST_MLR_SUCCESS pkts.filter_wpan_src64(vars['BR_2']) \ - .filter_ipv6_dst(vars['TD_RLOC']) \ + .filter_ipv6_dst(_pkt.ipv6.src) \ .filter_coap_ack('/n/mr') \ .filter(lambda p: p.coap.mid == _pkt.coap.mid and @@ -190,7 +190,7 @@ class MATN_15_ChangeOfPrimaryBBRTriggersRegistration(thread_cert.TestCase): # 5. Router_1 forwards the response to TD. pkts.filter_wpan_src64(vars['Router_1']) \ - .filter_ipv6_2dsts(vars['TD_RLOC'], vars['TD_LLA']) \ + .filter_ipv6_dst(_pkt.ipv6.src) \ .filter_coap_ack('/n/mr') \ .filter(lambda p: p.coap.mid == _pkt.coap.mid and