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

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


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

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

diff --git a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py
index c35f79d..d916d17 100644
--- a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py
+++ b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py
@@ -71,6 +71,7 @@ class TestPVPVirtioUserMultiQueuesPortRestart(TestCase):
         self.queue_number = 2
         self.dut.kill_all()
         self.number_of_ports = 1
+        self.app_testpmd_path = self.dut.apps_name['test-pmd']
 
     def set_up(self):
         """
@@ -89,7 +90,7 @@ class TestPVPVirtioUserMultiQueuesPortRestart(TestCase):
         """
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("rm -rf ./vhost-net*", "#")
-        testcmd = self.dut.target + "/app/testpmd "
+        testcmd = self.app_testpmd_path + " "
         vdev = 'net_vhost0,iface=vhost-net,queues=2,client=0'
         eal_params = self.dut.create_eal_parameters(cores=self.core_list[2:5], prefix='vhost', ports=[self.pci_info],
                                                     vdevs=[vdev])
@@ -108,7 +109,7 @@ class TestPVPVirtioUserMultiQueuesPortRestart(TestCase):
         """
         start testpmd in vm depend on different path
         """
-        testcmd = self.dut.target + "/app/testpmd "
+        testcmd = self.app_testpmd_path + " "
         eal_params = self.dut.create_eal_parameters(cores=self.core_list[5:8], prefix='virtio', no_pci=True,
                                                     vdevs=[vdevs])
         if self.check_2M_env:
-- 
1.8.3.1



More information about the dts mailing list