[V1] tests/TestSuite_cmdline:Modify the hard coded appparameter

Message ID 20201210112229.21854-1-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/TestSuite_cmdline:Modify the hard coded appparameter |

Commit Message

Zhou, JunX W Dec. 10, 2020, 11:22 a.m. UTC
  Modify the hard coded appparameter to call the platform interface

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

Comments

Tu, Lijuan Dec. 15, 2020, 5:51 a.m. UTC | #1
> Modify the hard coded appparameter to call the platform interface
> 
> Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>

Applied
  

Patch

diff --git a/tests/TestSuite_cmdline.py b/tests/TestSuite_cmdline.py
index 0172c4fd..c189934f 100644
--- a/tests/TestSuite_cmdline.py
+++ b/tests/TestSuite_cmdline.py
@@ -54,11 +54,9 @@  class TestCmdline(TestCase):
         self.verify("No such file" not in out, "compilation error 2")
 
         # Run cmdline app
-        cores = self.dut.get_core_list('1S/1C/1T')
-        coreMask = utils.create_mask(cores)
         self.app_cmdline_path = self.dut.apps_name['cmdline']
-        self.dut.send_expect("./%s -n 1 -c " % self.app_cmdline_path + coreMask, "> ", 10)
-
+        self.eal_para = self.dut.create_eal_parameters(cores="1S/1C/1T")
+        self.dut.send_expect(r'./%s %s' % (self.app_cmdline_path, self.eal_para), "> ", 10)
     def set_up(self):
         """
         Run before each test case.