[dts] [dts 01/38] tests/TestSuite_cmdline.py: adapt to support both meson and makefile build
Zhou, Jun
junx.w.zhou at intel.com
Tue Sep 8 09:17:48 CEST 2020
From: Zhou jun <junx.w.zhou at intel.com>
Signed-off-by: Zhou jun <junx.w.zhou at intel.com>
---
tests/TestSuite_cmdline.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_cmdline.py b/tests/TestSuite_cmdline.py
index ab30d8e..0172c4f 100644
--- a/tests/TestSuite_cmdline.py
+++ b/tests/TestSuite_cmdline.py
@@ -50,14 +50,14 @@ class TestCmdline(TestCase):
At least one core in DUT
"""
out = self.dut.build_dpdk_apps('examples/cmdline')
- self.verify('make: Leaving directory' in out, "Compilation failed")
self.verify("Error" not in out, "compilation error 1")
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.dut.send_expect("./examples/cmdline/build/cmdline -n 1 -c " + coreMask, "> ", 10)
+ self.app_cmdline_path = self.dut.apps_name['cmdline']
+ self.dut.send_expect("./%s -n 1 -c " % self.app_cmdline_path + coreMask, "> ", 10)
def set_up(self):
"""
--
1.8.3.1
More information about the dts
mailing list