[dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers
Hongbo Li
hongbox.li at intel.com
Fri Jun 9 12:10:20 CEST 2023
support eal_param -a to avoid running containers conflict
Signed-off-by: Hongbo Li <hongbox.li at 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
More information about the dts
mailing list