* [dts] [PATCH V1] modify the hard code
@ 2021-03-03 5:07 ChenBo
0 siblings, 0 replies; only message in thread
From: ChenBo @ 2021-03-03 5:07 UTC (permalink / raw)
To: dts; +Cc: ChenBo
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 --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'
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-03 5:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 5:07 [dts] [PATCH V1] modify the hard code ChenBo
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).