test suite reviews and discussions
 help / color / mirror / Atom feed
From: Hongbo Li <hongbox.li@intel.com>
To: dts@dpdk.org
Cc: Hongbo Li <hongbox.li@intel.com>
Subject: [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers
Date: Fri,  9 Jun 2023 18:10:20 +0800	[thread overview]
Message-ID: <20230609101020.23747-2-hongbox.li@intel.com> (raw)
In-Reply-To: <20230609101020.23747-1-hongbox.li@intel.com>

support eal_param -a to avoid running containers conflict

Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
 tests/TestSuite_iavf_package_driver_error_handle.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_iavf_package_driver_error_handle.py b/tests/TestSuite_iavf_package_driver_error_handle.py
index a3e4e9a9..af6560e6 100644
--- a/tests/TestSuite_iavf_package_driver_error_handle.py
+++ b/tests/TestSuite_iavf_package_driver_error_handle.py
@@ -320,10 +320,14 @@ class Testiavf_package_and_driver_check(TestCase):
 
         for port in self.sriov_vfs_port:
             port.bind_driver("vfio-pci")
+        self.eal_param_a = ""
+        for sriov_vf in self.sriov_vfs_port:
+            self.eal_param_a += " -a {}".format(sriov_vf.pci)
 
-        testpmdcmd = (
-            self.dut.apps_name["test-pmd"]
-            + "-l 6-9 -n 4  --file-prefix=vf -- -i --rxq=4 --txq=4  --nb-cores=2"
+        testpmdcmd = self.dut.apps_name[
+            "test-pmd"
+        ] + "-l 6-9 -n 4 %s --file-prefix=vf -- -i --rxq=4 --txq=4  --nb-cores=2" % (
+            self.eal_param_a
         )
         self.dut_testpmd.execute_cmd(testpmdcmd)
         out = self.dut_testpmd.execute_cmd(
-- 
2.17.1


  reply	other threads:[~2023-06-09  1:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09 10:10 [dts][PATCH V1 1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict Hongbo Li
2023-06-09 10:10 ` Hongbo Li [this message]
2023-06-14  2:13   ` [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers 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=20230609101020.23747-2-hongbox.li@intel.com \
    --to=hongbox.li@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).