[dts] [dts 24/38] tests/TestSuite_timer.py: adapt to support both meson and makefile build
Zhou, Jun
junx.w.zhou at intel.com
Tue Sep 8 09:18:11 CEST 2020
From: Zhou jun <junx.w.zhou at intel.com>
Signed-off-by: Zhou jun <junx.w.zhou at intel.com>
---
tests/TestSuite_timer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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)
--
1.8.3.1
More information about the dts
mailing list