[dts] [PATCH V1] tests/vlan: optimization script
Song Jiale
songx.jiale at intel.com
Tue Sep 13 14:49:44 CEST 2022
when the ports of dut and tester do not correspond one-to-one in
sequence, the acquired tester port is wrong.
Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
tests/TestSuite_vlan.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index 27e9a30c..3d8811f9 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -33,7 +33,8 @@ class TestVlan(TestCase):
self.dut_ports = self.dut.get_ports(self.nic)
self.used_dut_port_0 = self.dut_ports[0]
- self.tester_intf_0 = self.tester.get_interface(self.used_dut_port_0)
+ self.used_tester_port = self.tester.get_local_port(self.used_dut_port_0)
+ self.tester_intf_0 = self.tester.get_interface(self.used_tester_port)
# Verify that enough ports are available
self.verify(len(ports) >= 1, "Insufficient ports")
--
2.25.1
More information about the dts
mailing list