diff mbox series

[V1] tests/cvl_fdir: modify the hard code

Message ID 20210303082941.223073-1-box.c.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/cvl_fdir: modify the hard code | expand

Commit Message

Chen, BoX C March 3, 2021, 8:29 a.m. UTC
Modify the hard code, call the framework interface to launch port

Signed-off-by: Chen Bo <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(-)

Comments

Tu, Lijuan March 10, 2021, 6:45 a.m. UTC | #1
> Modify the hard code, call the framework interface to launch port
> 
> Signed-off-by: Chen Bo <box.c.chen@intel.com>

Applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py
index e118357..549256b 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 1005f3a..cc0283b 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'