test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yu Jiang <yux.jiang@intel.com>
To: lijuan.tu@intel.com, dts@dpdk.org
Cc: Yu Jiang <yux.jiang@intel.com>
Subject: [dts][PATCH V1] tests/vf_l2fwd: Optimize scripts
Date: Wed, 19 Apr 2023 13:14:33 +0800	[thread overview]
Message-ID: <20230419051433.1950456-1-yux.jiang@intel.com> (raw)

After bind back to kernel, execute "ifconfig .. up" to ensure pf port up

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 tests/TestSuite_vf_l2fwd.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_vf_l2fwd.py b/tests/TestSuite_vf_l2fwd.py
index 3bac3744..f8c3f888 100644
--- a/tests/TestSuite_vf_l2fwd.py
+++ b/tests/TestSuite_vf_l2fwd.py
@@ -60,6 +60,9 @@ class TestVfL2fwd(TestCase):
         VF_MAC_ADDR_port1 = "00:11:22:33:44:66"
         # generate vf
         self.dut.bind_interfaces_linux(self.kdriver)
+        for i_port in [self.dut.ports_info[self.dut_ports[0]]["intf"], self.dut.ports_info[self.dut_ports[1]]["intf"]]:
+            self.dut.send_expect("ifconfig %s up" % i_port, "# ")
+            self.dut.is_interface_up(i_port)
         self.dut.generate_sriov_vfs_by_port(self.dut_ports[0], 1, self.kdriver)
         self.sriov_vfs_port_0 = self.dut.ports_info[self.dut_ports[0]]["vfs_port"]
         self.verify(len(self.sriov_vfs_port_0) != 0, "VF create failed")
-- 
2.25.1


             reply	other threads:[~2023-04-19  5:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19  5:14 Yu Jiang [this message]
2023-04-26  6:44 ` 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=20230419051433.1950456-1-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    /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).