From 51035f564e4f2550c98248490cb0fffe970cd39a Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Thu, 1 Apr 2021 23:13:59 +0800 Subject: [PATCH] [scripts] fix multicast routing test false fails (#6388) --- ...lr_multicast_routing_across_thread_pans.py | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/tests/scripts/thread-cert/backbone/test_mlr_multicast_routing_across_thread_pans.py b/tests/scripts/thread-cert/backbone/test_mlr_multicast_routing_across_thread_pans.py index 94040ad74..67ae5c399 100644 --- a/tests/scripts/thread-cert/backbone/test_mlr_multicast_routing_across_thread_pans.py +++ b/tests/scripts/thread-cert/backbone/test_mlr_multicast_routing_across_thread_pans.py @@ -183,25 +183,13 @@ class TestMlr(thread_cert.TestCase): ping_ma1 = pkts.filter_eth_src(HOST_ETH).filter_ipv6_src_dst(HOST_BGUA, MA1).filter_ping_request().must_next() with pkts.save_index(): - # PBBR1 should forward ping-MA1 to Router1 - pkts.filter_wpan_src64(PBBR1).filter_AMPLFMA().filter_ping_request( - identifier=ping_ma1.icmpv6.echo.identifier).must_next() - # Router1 should send ping reply - ping_reply_pkts = pkts.filter_ipv6_src_dst( - ROUTER1_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier) - ping_reply_pkts.filter_wpan_src64(ROUTER1).must_next() # PBBR1 should forward ping reply to the Backbone link - ping_reply_pkts.filter_eth_src(PBBR1_ETH).must_next() + pkts.filter_eth_src(PBBR1_ETH).filter_ipv6_src_dst( + ROUTER1_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier).must_next() - # PBBR2 should forward ping-MA1 to Router2 - pkts.filter_wpan_src64(PBBR2).filter_AMPLFMA().filter_ping_request( - identifier=ping_ma1.icmpv6.echo.identifier).must_next() - # Router2 should send ping reply - ping_reply_pkts = pkts.filter_ipv6_src_dst( - ROUTER2_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier) - ping_reply_pkts.filter_wpan_src64(ROUTER2).must_next() # PBBR2 should forward ping reply to the Backbone link - ping_reply_pkts.filter_eth_src(PBBR2_ETH).must_next() + pkts.filter_eth_src(PBBR2_ETH).filter_ipv6_src_dst( + ROUTER2_DUA, HOST_BGUA).filter_ping_reply(identifier=ping_ma1.icmpv6.echo.identifier).must_next() # # Verify R1 pings MA2 to Host and R2