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

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

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_skeleton.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/TestSuite_skeleton.py b/tests/TestSuite_skeleton.py
index 38bc523..7ae19f6 100644
--- a/tests/TestSuite_skeleton.py
+++ b/tests/TestSuite_skeleton.py
@@ -55,8 +55,8 @@  class TestSkeleton(TestCase):
         self.coremask = utils.create_mask(cores)
         
         self.mac = self.dut.get_mac_address(self.dut_ports[0])
-        self.path = "./examples/skeleton/build/basicfwd"
-
+        self.app_skeleton_path = self.dut.apps_name['skeleton']
+        self.path = "./%s/build/basicfwd" % self.app_skeleton_path
         out = self.dut.build_dpdk_apps("./examples/skeleton")
         self.verify("Error" not in out, "compilation error 1")
         self.verify("No such file" not in out, "compilation error 2")