[dts] [dts 30/38] tests/TestSuite_pvp_vhost_user_built_in_net_driver.py:support meson build
xizhan4x
xix.zhang at intel.com
Fri Sep 4 10:18:37 CEST 2020
Signed-off-by: xizhan4x <xix.zhang at intel.com>
---
tests/TestSuite_pvp_vhost_user_built_in_net_driver.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py b/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py
index 1b7d9c5..a0d1667 100644
--- a/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py
+++ b/tests/TestSuite_pvp_vhost_user_built_in_net_driver.py
@@ -81,6 +81,8 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase):
# set memory size
self.verify(self.sockets > 0, 'cpu socket should not be zero')
self.mem_size = ','.join(['2048']*self.sockets)
+ self.path=self.dut.apps_name['test-pmd']
+ self.testpmd_name = self.path.split("/")[-1]
def set_up(self):
"""
@@ -89,7 +91,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase):
self.dut.send_expect("rm -rf ./vhost-net*", "# ")
self.dut.send_expect("rm -rf ./vhost.out", "# ")
self.dut.send_expect("killall -s INT vhost", "# ")
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name , "#")
self.vhost_switch = self.dut.new_session(suite="vhost-switch")
self.virtio_user = self.dut.new_session(suite="virtio-user")
self.pmd_out = PmdOutput(self.dut, self.virtio_user)
@@ -210,7 +212,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase):
'net_virtio_user0,mac=%s,path=./vhost-net,queues=1' % self.virtio_mac])
if self.check_2M_env:
eal_param += " --single-file-segments"
- command_line_user = "./%s/app/testpmd " % self.target + eal_param + " -- -i --rxq=1 --txq=1"
+ command_line_user = self.path + eal_param + " -- -i --rxq=1 --txq=1"
self.virtio_user.send_expect(command_line_user, "testpmd> ", 120)
self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120)
self.virtio_user.send_expect("start tx_first", "testpmd> ", 120)
@@ -240,7 +242,7 @@ class TestPVPVhostUserBuiltInNetDriver(TestCase):
"""
Run after each test case.
"""
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name , "#")
self.dut.send_expect("killall -s INT vhost", "# ")
def tear_down_all(self):
--
1.8.3.1
More information about the dts
mailing list