[dts] [PATCH V1 09/10] tests/tests/TestSuite_rxtx_callbacks.py:adapt to support both meson and makefile build

Zhou, Jun junx.w.zhou at intel.com
Wed Sep 16 14:29:50 CEST 2020


adapt to support both meson and makefile build

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

diff --git a/tests/TestSuite_rxtx_callbacks.py b/tests/TestSuite_rxtx_callbacks.py
index a2da0d94..33a1bb00 100644
--- a/tests/TestSuite_rxtx_callbacks.py
+++ b/tests/TestSuite_rxtx_callbacks.py
@@ -54,7 +54,7 @@ class TestRxtxCallbacks(TestCase):
         self.coremask = utils.create_mask(cores)
         
         self.mac = self.dut.get_mac_address(self.dut_ports[0])
-        self.path = "./examples/rxtx_callbacks/build/rxtx_callbacks"
+        self.app_rxtx_callbacks_path = self.dut.apps_name['rxtx_callbacks']
 
         out = self.dut.build_dpdk_apps("./examples/rxtx_callbacks")
         self.verify("Error" not in out, "compilation error 1")
@@ -67,7 +67,7 @@ class TestRxtxCallbacks(TestCase):
         pass
 
     def test_rxtx_callbacks(self):
-        cmd = self.path + " -c %s -n %d " % (self.coremask,self.dut.get_memory_channels())
+        cmd = self.app_rxtx_callbacks_path + " -c %s -n %d " % (self.coremask,self.dut.get_memory_channels())
         self.dut.send_expect(cmd,"forwarding packets",60)
          
         self.iface_port0 = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
-- 
2.25.1



More information about the dts mailing list