diff mbox series

[10/15] tests/TestSuite_unit_tests_pmd_perf:update to support meson build

Message ID 20200903082839.30213-11-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series support meson build method | expand

Commit Message

Lingli Chen Sept. 3, 2020, 8:28 a.m. UTC
Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_unit_tests_pmd_perf.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index f8b36d1..4546169 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -80,7 +80,8 @@  class TestUnitTestsPmdPerf(TestCase):
         """
 
         eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1])
-        self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60)
         for mode in self.burst_ctlmodes:
             self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
             out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
@@ -102,7 +103,8 @@  class TestUnitTestsPmdPerf(TestCase):
         self.result_table_create(self.table_header)
         eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1])
         print((self.table_header))
-        self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60)        
         for mode in self.rxtx_modes:
             table_row = [mode]
             self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10)