test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info
@ 2021-09-18 13:37 Yan Xia
  2021-09-18  5:51 ` Chen, LingliX
  0 siblings, 1 reply; 3+ messages in thread
From: Yan Xia @ 2021-09-18 13:37 UTC (permalink / raw)
  To: dts; +Cc: Yan Xia

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

Signed-off-by: Yan Xia <yanx.xia@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-27  5:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-18 13:37 [dts] [PATCH V1] tests/mtu_update: Modify the way to get tester port info Yan Xia
2021-09-18  5:51 ` Chen, LingliX
2021-09-27  5:50   ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).