diff mbox series

[20/38] tests/TestSuite_perf_virtio_user_loopback.py:support meson build

Message ID 1599207525-22123-20-git-send-email-xix.zhang@intel.com (mailing list archive)
State Accepted
Headers show
Series Modify suite to support meson & makefile | expand

Commit Message

Zhang, XiX Sept. 4, 2020, 8:18 a.m. UTC
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_perf_virtio_user_loopback.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_perf_virtio_user_loopback.py b/tests/TestSuite_perf_virtio_user_loopback.py
index 822e6d9..9f40d36 100644
--- a/tests/TestSuite_perf_virtio_user_loopback.py
+++ b/tests/TestSuite_perf_virtio_user_loopback.py
@@ -72,6 +72,7 @@  class TestPerfVirtioUserLoopback(TestCase):
         self.virtio_user = self.dut.new_session(suite="virtio-user")
         self.save_result_flag = True
         self.json_obj = dict()
+        self.path=self.dut.apps_name['test-pmd']
 
     def set_up(self):
         """
@@ -107,7 +108,7 @@  class TestPerfVirtioUserLoopback(TestCase):
         """
         eal_params = self.dut.create_eal_parameters(cores=self.core_list_host,
                         no_pci=True, prefix='vhost')
-        command_line_client = self.dut.target + "/app/testpmd %s " + \
+        command_line_client = self.path + " %s " + \
                               "--socket-mem %s --vdev " + \
                               "'net_vhost0,iface=vhost-net,queues=%d' -- -i --nb-cores=%d " + \
                               "--rxq=%d --txq=%d --txd=%d --rxd=%d"
@@ -124,7 +125,7 @@  class TestPerfVirtioUserLoopback(TestCase):
         """
         eal_params = self.dut.create_eal_parameters(cores=self.core_list_user,
                         no_pci=True, prefix='virtio')
-        command_line_user = self.dut.target + "/app/testpmd %s " + \
+        command_line_user = self.path+ " %s " + \
                             " --socket-mem %s " + \
                             "--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=%d,%s " + \
                             "-- -i %s --rss-ip --nb-cores=%d --rxq=%d --txq=%d --txd=%d --rxd=%d"