[V1] tests/fortville_rss_input: adaptation meson build
diff mbox series

Message ID 20200916101441.27678-1-box.c.chen@intel.com
State New
Headers show
Series
  • [V1] tests/fortville_rss_input: adaptation meson build
Related show

Commit Message

Chen, BoX C Sept. 16, 2020, 10:14 a.m. UTC
1.Modification of adaptation meson build.
2.Correct class name

Signed-off-by: ChenBo <box.c.chen@intel.com>
---
 tests/TestSuite_fortville_rss_input.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Comments

Ma, LihongX Sept. 17, 2020, 8:11 a.m. UTC | #1
Acked-by: lihongx ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of ChenBo
> Sent: Wednesday, September 16, 2020 6:15 PM
> To: dts@dpdk.org
> Cc: Chen, BoX C <box.c.chen@intel.com>
> Subject: [dts] [PATCH V1] tests/fortville_rss_input: adaptation meson build

Patch
diff mbox series

diff --git a/tests/TestSuite_fortville_rss_input.py b/tests/TestSuite_fortville_rss_input.py
index 8a0c41e..58868bf 100644
--- a/tests/TestSuite_fortville_rss_input.py
+++ b/tests/TestSuite_fortville_rss_input.py
@@ -67,7 +67,7 @@  from test_case import TestCase
 #
 
 
-class TestFortvilleRssGranularityConfig(TestCase):
+class TestFortvilleRssInput(TestCase):
     #
     #
     # Utility methods and other non-test code.
@@ -84,6 +84,7 @@  class TestFortvilleRssGranularityConfig(TestCase):
         ports = self.dut.get_ports(self.nic)
         self.verify(len(ports) >= 1, "Not enough ports available")
         dutPorts = self.dut.get_ports(self.nic)
+        self.dut_ports = dutPorts
         localPort = self.tester.get_local_port(dutPorts[0])
         self.itf = self.tester.get_interface(localPort)
         self.pmdout = PmdOutput(self.dut)
@@ -292,13 +293,13 @@  class TestFortvilleRssGranularityConfig(TestCase):
         """
         Create testpmd command
         """
-        self.dut.send_expect(
-            "./%s/app/testpmd  -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x1 --rxq=4 --txq=4" %
-            (self.target, self.dut.get_memory_channels()), "testpmd> ", 120)
-
+        app_name = self.dut.apps_name['test-pmd']
+        eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T', ports=[self.dut_ports[0]])
+        cmd = app_name + eal_params + '-- -i --portmask=0x1 --rxq=4 --txq=4'
+        self.dut.send_expect(cmd, "testpmd> ", 30)
         self.dut.send_expect("set verbose 8", "testpmd> ")
         self.dut.send_expect("set fwd rxonly", "testpmd> ")
-        self.dut.send_expect("start", "testpmd> ", 120)
+        self.dut.send_expect("start", "testpmd> ", 10)
         time.sleep(2)
 
         res = self.pmdout.wait_link_status_up("all")