diff mbox series

[24/38] tests/TestSuite_timer.py: adapt to support both meson and makefile build

Message ID 20200908071825.118583-25-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers show
Series Modify suites to support meson | expand

Commit Message

Zhou, JunX W Sept. 8, 2020, 7:18 a.m. UTC
From: Zhou jun <junx.w.zhou@intel.com>

Signed-off-by: Zhou jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_timer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_timer.py b/tests/TestSuite_timer.py
index 4d0434e..0be8029 100644
--- a/tests/TestSuite_timer.py
+++ b/tests/TestSuite_timer.py
@@ -52,7 +52,7 @@  class TestTimer(TestCase):
         timer prerequisites
         """
         out = self.dut.build_dpdk_apps('examples/timer')
-
+        self.app_timer_path = self.dut.apps_name['timer']
         self.verify("Error" not in out, "compilation error 1")
         self.verify("No such file" not in out, "compilation error 2")
 
@@ -72,7 +72,7 @@  class TestTimer(TestCase):
         coreMask = utils.create_mask(cores)
 
         # run timer on the background
-        cmdline = "./examples/timer/build/timer -n 1 -c " + coreMask + " &"
+        cmdline = "./%s -n 1 -c " % self.app_timer_path + coreMask + " &"
 
         self.dut.send_expect(cmdline, "# ", 1)
         time.sleep(15)