[01/28] tests/TestSuite_hello_world:Modify the hard coded app parameter to call the platform interface

Message ID 20201208100627.9792-2-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers
Series Modify the hard coded app parameter to call the platform interface |

Commit Message

Zhou, JunX W Dec. 8, 2020, 10:06 a.m. UTC
  Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_hello_world.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/tests/TestSuite_hello_world.py b/tests/TestSuite_hello_world.py
index cd843b53..8e2ffd90 100644
--- a/tests/TestSuite_hello_world.py
+++ b/tests/TestSuite_hello_world.py
@@ -66,8 +66,8 @@  class TestHelloWorld(TestCase):
 
         # get the mask for the first core
         cores = self.dut.get_core_list('1S/1C/1T')
-        coreMask = utils.create_mask(cores)
-        cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask
+        eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T')
+        cmdline = "./%s %s" % (self.app_helloworld_path, eal_para)
         out = self.dut.send_expect(cmdline, "# ", 30)
         self.verify("hello from core %s" % cores[0] in out, "EAL not started on core%s" % cores[0])
 
@@ -86,9 +86,9 @@  class TestHelloWorld(TestCase):
         else:
             available_max_lcore = len(cores) + 1
 
-        coreMask = utils.create_mask(cores[:available_max_lcore - 1])
+        eal_para = self.dut.create_eal_parameters(cores=cores[:available_max_lcore - 1])
 
-        cmdline = "./%s -n 1 -c " % self.app_helloworld_path + coreMask
+        cmdline = "./%s %s " % (self.app_helloworld_path, eal_para)
         out = self.dut.send_expect(cmdline, "# ", 50)
         for i in range(available_max_lcore - 1):
             self.verify("hello from core %s" % cores[i] in out, "EAL not started on core%s" % cores[i])