* [dts] [PATCH V1] tests/cvl_fdir: modify the hard code
@ 2021-03-03 8:29 Chen Bo
2021-03-10 6:45 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Chen Bo @ 2021-03-03 8:29 UTC (permalink / raw)
To: dts; +Cc: Chen Bo
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(-)
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'
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-10 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 8:29 [dts] [PATCH V1] tests/cvl_fdir: modify the hard code Chen Bo
2021-03-10 6:45 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).