[V1,2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers
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
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
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
@@ -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(