[v1] tests/kernelpf_iavf: support eal_param -a to avoid running containers conflict

Message ID 20230531132620.198471-1-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers
Series [v1] tests/kernelpf_iavf: support eal_param -a to avoid running containers conflict |

Checks

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

Commit Message

Weiyuan Li May 31, 2023, 1:26 p.m. UTC
  Support eal_param -a to avoid running containers conflict.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Tu, Lijuan June 7, 2023, 7:57 a.m. UTC | #1
On Wed, 31 May 2023 13:26:20 +0000, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> Support eal_param -a to avoid running containers conflict.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>


Applied, thanks
  

Patch

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 49d82545..bde556ea 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -756,7 +756,9 @@  class TestKernelpfIavf(TestCase):
         # start l3fwd-power
         l3fwd_app = self.dut.apps_name["l3fwd-power"]
 
-        cmd = l3fwd_app + " -l 6,7 -n 4 -- -p 0x3 --config " + "'(0,0,6),(1,0,7)'"
+        vf_pci_id_0 = self.dut.ports_info[self.used_dut_port_0]["sriov_vfs_pci"][0]
+        vf_pci_id_1 = self.dut.ports_info[self.used_dut_port_1]["sriov_vfs_pci"][0]
+        cmd = l3fwd_app + f" -l 6,7 -n 4 -a {vf_pci_id_0} -a {vf_pci_id_1} -- -p 0x3 --config " + "'(0,0,6),(1,0,7)'"
         self.dut.send_expect(cmd, "POWER", timeout=40)
         out = self.dut.get_session_output()
         print(out)