[V1] tests/TestSuite_cmdline:Modify the hard coded appparameter
Commit Message
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
> Modify the hard coded appparameter to call the platform interface
>
> Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
Applied
@@ -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.