test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter
@ 2020-12-10 11:26 Zhou Jun
  2020-12-15  5:53 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Zhou Jun @ 2020-12-10 11:26 UTC (permalink / raw)
  To: dts; +Cc: Zhou Jun

Modify the hard coded app parameter to call the platform interface

Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_dynamic_config.py | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_dynamic_config.py b/tests/TestSuite_dynamic_config.py
index a9c482e5..92f15d36 100644
--- a/tests/TestSuite_dynamic_config.py
+++ b/tests/TestSuite_dynamic_config.py
@@ -72,16 +72,12 @@ class TestDynamicConfig(TestCase):
         self.verify(len(self.dut_ports) >= 2, "Insufficient ports")
 
         # Prepare cores and ports
-        cores = self.dut.get_core_list('1S/2C/2T')
-        self.coreMask = utils.create_mask(cores)
         self.portMask = utils.create_mask(self.dut_ports[:2])
         self.path=self.dut.apps_name['test-pmd']
         # launch app
-        cmd = "%s -c %s -n 3 -- -i --rxpt=0 \
-        --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s" % (self.path, self.coreMask, self.portMask)
-
-        self.dut.send_expect("%s" % cmd, "testpmd> ", 120)
-
+        self.eal_para = self.dut.create_eal_parameters(cores="1S/2C/2T")
+        self.dut.send_expect(r'%s %s -- -i --rxpt=0 --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s'
+                             % (self.path, self.eal_para, self.portMask), "testpmd>", 120)
         # get dest address from self.target port
         out = self.dut.send_expect(
             "show port info %d" % self.dut_ports[0], "testpmd> ")
@@ -118,10 +114,9 @@ class TestDynamicConfig(TestCase):
         """
         Run before each test case.
         """
-        cmd = "%s -n 3 -- -i --rxpt=0 \
-        --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s" % (self.path, self.portMask)
-
-        self.dut.send_expect("%s" % cmd, "testpmd> ", 120)
+        self.eal_para = self.dut.create_eal_parameters('1S/2C/2T')
+        self.dut.send_expect(r'%s %s -- -i --rxpt=0 --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s'
+                             % (self.path, self.eal_para, self.portMask), "testpmd>", 120)
         time.sleep(5)
         self.dut.send_expect("start", "testpmd> ", 120)
 
-- 
2.17.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter
  2020-12-10 11:26 [dts] [PATCH V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter Zhou Jun
@ 2020-12-15  5:53 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-12-15  5:53 UTC (permalink / raw)
  To: Zhou, JunX W, dts; +Cc: Zhou, JunX W

> Modify the hard coded app parameter to call the platform interface
> 
> Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>

Applied

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

end of thread, other threads:[~2020-12-15  5:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 11:26 [dts] [PATCH V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter Zhou Jun
2020-12-15  5:53 ` 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).