[V1,2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers

Message ID 20230609101020.23747-2-hongbox.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V1,1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Li, HongboX June 9, 2023, 10:10 a.m. UTC
  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(-)
  

Comments

Tu, Lijuan June 14, 2023, 2:13 a.m. UTC | #1
On Fri,  9 Jun 2023 18:10:20 +0800, Hongbo Li <hongbox.li@intel.com> wrote:
> support eal_param -a to avoid running containers conflict
> 
> Signed-off-by: Hongbo Li <hongbox.li@intel.com>


Series applied, thanks
  

Patch

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(