diff mbox series

[V1] modify the hard code

Message ID 20210303050724.20381-1-box.c.chen@intel.com (mailing list archive)
State Superseded
Headers show
Series [V1] modify the hard code | expand

Commit Message

Chen, BoX C March 3, 2021, 5:07 a.m. UTC
modify the hard code and call the framework interface to launch port

Signed-off-by: ChenBo <box.c.chen@intel.com>
---
 tests/TestSuite_cvl_fdir.py          | 4 ++--
 tests/TestSuite_cvl_switch_filter.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py
index e1183575..549256bc 100644
--- a/tests/TestSuite_cvl_fdir.py
+++ b/tests/TestSuite_cvl_fdir.py
@@ -2264,8 +2264,8 @@  class TestCVLFdir(TestCase):
 
         self.pkt = Packet()
         self.pmd_output = PmdOutput(self.dut)
-        pf_pci = self.dut.ports_info[0]['pci']
-        out = self.pmd_output.start_testpmd('default', eal_param='-a %s --log-level=ice,7'%pf_pci)
+        pf_pci = [self.dut.ports_info[0]['pci']]
+        out = self.pmd_output.start_testpmd('default', ports=pf_pci,eal_param='--log-level=ice,7')
         self.dut.send_expect("quit", "# ")
         self.max_rule_num = self.pmd_output.get_max_rule_number(self, out)
         self.launch_testpmd_with_mark()
diff --git a/tests/TestSuite_cvl_switch_filter.py b/tests/TestSuite_cvl_switch_filter.py
index 1005f3a2..cc0283be 100644
--- a/tests/TestSuite_cvl_switch_filter.py
+++ b/tests/TestSuite_cvl_switch_filter.py
@@ -4548,8 +4548,8 @@  class CVLSwitchFilterTest(TestCase):
         """
         generate file with fdir rules to make fdir table full, then test switch filter
         """
-        pf_pci = self.dut.ports_info[0]['pci']
-        out = self.pmd.start_testpmd('default', eal_param='-a %s --log-level=ice,7'%pf_pci)
+        pf_pci = [self.dut.ports_info[0]['pci']]
+        out = self.pmd.start_testpmd('default', ports=pf_pci, eal_param='--log-level=ice,7')
         self.dut.send_expect("quit", "# ")
         self.fdir_rule_number = self.pmd.get_max_rule_number(self,out)
         src_file = 'dep/testpmd_cmds_rte_flow_fdir_rules'