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

Zhou, Jun junx.w.zhou at intel.com
Tue Sep 8 09:18:00 CEST 2020


From: Zhou jun <junx.w.zhou at intel.com>

Signed-off-by: Zhou jun <junx.w.zhou at intel.com>
---
 tests/TestSuite_keep_alive.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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)
 
-- 
1.8.3.1



More information about the dts mailing list