test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/fortville_rss_input: adaptation meson build
@ 2020-09-16 10:14 ChenBo
  2020-09-16 10:34 ` Chen, BoX C
  2020-09-17  8:11 ` Ma, LihongX
  0 siblings, 2 replies; 4+ messages in thread
From: ChenBo @ 2020-09-16 10:14 UTC (permalink / raw)
  To: dts; +Cc: ChenBo

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(-)

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")
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-23  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 10:14 [dts] [PATCH V1] tests/fortville_rss_input: adaptation meson build ChenBo
2020-09-16 10:34 ` Chen, BoX C
2020-09-17  8:11 ` Ma, LihongX
2020-09-23  6:59   ` 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).