[dts] [dts 21/38] tests/TestSuite_perf_vm2vm_virtio_net_perf.py:support meson build

xizhan4x xix.zhang at intel.com
Fri Sep 4 10:18:28 CEST 2020


Signed-off-by: xizhan4x <xix.zhang at intel.com>
---
 tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
index ae8c975..4bf86c5 100644
--- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
@@ -75,6 +75,7 @@ class TestPerfVM2VMVirtioNetPerf(TestCase):
         self.pmd_vhost = PmdOutput(self.dut, self.vhost)
         self.json_obj = dict()
         self.save_result_flag = True
+        self.path=self.dut.apps_name['test-pmd']
 
     def set_up(self):
         """
@@ -162,12 +163,11 @@ class TestPerfVM2VMVirtioNetPerf(TestCase):
             zerocopy_arg = ",dequeue-zero-copy=1"
         else:
             zerocopy_arg = ""
-        testcmd = self.dut.target + "/app/testpmd "
         vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1%s' " % (self.base_dir, zerocopy_arg)
         vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1%s' " % (self.base_dir, zerocopy_arg)
         eal_params = self.dut.create_eal_parameters(cores=self.cores_list, prefix='vhost', no_pci=True)
         para = " -- -i --nb-cores=2 --txd=1024 --rxd=1024"
-        self.command_line = testcmd + eal_params + vdev1 + vdev2 + para
+        self.command_line = self.path + eal_params + vdev1 + vdev2 + para
         self.pmd_vhost.execute_cmd(self.command_line, timeout=30)
         self.pmd_vhost.execute_cmd('start', timeout=30)
 
-- 
1.8.3.1



More information about the dts mailing list