diff mbox series

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

Message ID 20200908071825.118583-14-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_keep_alive.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_keep_alive.py b/tests/TestSuite_keep_alive.py
index 1cab9c8..7bee4f0 100644
--- a/tests/TestSuite_keep_alive.py
+++ b/tests/TestSuite_keep_alive.py
@@ -51,8 +51,7 @@  class TestKeepAlive(TestCase):
         self.verify(len(self.dut_ports) >= 2, "Insufficient ports")
         cores = self.dut.get_core_list("1S/4C/1T")
         self.coremask = utils.create_mask(cores)
-
-        self.path = "./examples/l2fwd-keepalive/build/l2fwd-keepalive" 
+        self.app_l2fwd_keepalive_path = self.dut.apps_name['l2fwd-keepalive']
 
         # build sample app  
         out = self.dut.build_dpdk_apps("./examples/l2fwd-keepalive")
@@ -69,7 +68,7 @@  class TestKeepAlive(TestCase):
         """
         Verify netmap compatibility with one port 
         """ 
-        cmd = self.path + " -c f -n 4 -- -q 8 -p ffff -K 10"
+        cmd = self.app_l2fwd_keepalive_path + " -c f -n 4 -- -q 8 -p ffff -K 10"
       
         self.dut.send_expect(cmd,"Port statistics",60)