[dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info

Yan Xia yanx.xia at intel.com
Sat Sep 18 15:37:26 CEST 2021


get tester port info by tester local port connectting to specified dut
port

Signed-off-by: Yan Xia <yanx.xia at intel.com>
---
 tests/TestSuite_mtu_update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py
index f1da8660..2aff926e 100644
--- a/tests/TestSuite_mtu_update.py
+++ b/tests/TestSuite_mtu_update.py
@@ -95,7 +95,7 @@ class TestMtuUpdate(TestCase):
         return self.dut.get_mac_address(port_id)
 
     def send_scapy_packet(self, port_id: int, packet: str):
-        itf = self.tester.get_interface(port_id)
+        itf = self.tester.get_interface(self.tester.get_local_port(port_id))
 
         self.tester.scapy_foreground()
         mac = self.dut.get_mac_address(port_id)
-- 
2.32.0



More information about the dts mailing list