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

Message ID 20201208100627.9792-27-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_timer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/TestSuite_timer.py b/tests/TestSuite_timer.py
index 0be80293..77758823 100644
--- a/tests/TestSuite_timer.py
+++ b/tests/TestSuite_timer.py
@@ -69,10 +69,10 @@  class TestTimer(TestCase):
 
         # get the mask for the first core
         cores = self.dut.get_core_list('1S/1C/1T')
-        coreMask = utils.create_mask(cores)
+        eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T')
 
         # run timer on the background
-        cmdline = "./%s -n 1 -c " % self.app_timer_path + coreMask + " &"
+        cmdline = "./%s %s " % (self.app_timer_path, eal_para) + " &"
 
         self.dut.send_expect(cmdline, "# ", 1)
         time.sleep(15)