test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vlan: optimization script
@ 2022-09-13 12:49 Song Jiale
  2022-09-20  8:25 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Song Jiale @ 2022-09-13 12:49 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

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@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


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

* [dts] [PATCH V1] tests/vlan: optimization script
  2022-09-13 12:49 [dts] [PATCH V1] tests/vlan: optimization script Song Jiale
@ 2022-09-20  8:25 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-09-20  8:25 UTC (permalink / raw)
  To: dts, Song Jiale; +Cc: Song Jiale

On Tue, 13 Sep 2022 12:49:44 +0000, Song Jiale <songx.jiale@intel.com> wrote:
> 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@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks

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

end of thread, other threads:[~2022-09-20  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 12:49 [dts] [PATCH V1] tests/vlan: optimization script Song Jiale
2022-09-20  8:25 ` lijuan.tu

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).