diff mbox series

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

Message ID 20200908071825.118583-2-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:17 a.m. UTC
From: Zhou jun <junx.w.zhou@intel.com>

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

Patch

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):
         """