test suite reviews and discussions
 help / color / mirror / Atom feed
From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/vlan: optimization script
Date: Tue, 13 Sep 2022 12:49:44 +0000	[thread overview]
Message-ID: <20220913124944.143017-1-songx.jiale@intel.com> (raw)

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


             reply	other threads:[~2022-09-13  4:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13 12:49 Song Jiale [this message]
2022-09-20  8:25 ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220913124944.143017-1-songx.jiale@intel.com \
    --to=songx.jiale@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).