[dts] [PATCH V1 03/17] tests/TestSuite_pvp_multi_paths_performance:vhost-net changed to absolute path
zhuwenhui
wenhuix.zhu at intel.com
Thu Aug 29 10:03:42 CEST 2019
Vhost-net changed to absolute path
Signed-off-by: zhuwenhui <wenhuix.zhu at intel.com>
---
tests/TestSuite_pvp_multi_paths_performance.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_pvp_multi_paths_performance.py b/tests/TestSuite_pvp_multi_paths_performance.py
index b633b98..7000afd 100644
--- a/tests/TestSuite_pvp_multi_paths_performance.py
+++ b/tests/TestSuite_pvp_multi_paths_performance.py
@@ -69,6 +69,7 @@ class TestPVPMultiPathPerformance(TestCase):
self.tester.send_expect('mkdir -p %s' % self.out_path, '# ')
# create an instance to set stream field setting
self.pktgen_helper = PacketGeneratorHelper()
+ self.base_dir = self.dut.base_dir.replace('~', '/root')
def set_up(self):
"""
@@ -123,15 +124,15 @@ class TestPVPMultiPathPerformance(TestCase):
start testpmd on vhost
"""
self.dut.send_expect("rm -rf ./vhost.out", "#")
- self.dut.send_expect("rm -rf ./vhost-net*", "#")
+ self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
self.dut.send_expect("killall -s INT testpmd", "#")
self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
command_line_client = "./%s/app/testpmd -n %d -c %s --socket-mem " + \
" %s --legacy-mem -w %s --file-prefix=vhost --vdev " + \
- "'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --nb-cores=1 --txd=1024 --rxd=1024"
+ "'net_vhost0,iface=%s/vhost-net,queues=1,client=0' -- -i --nb-cores=1 --txd=1024 --rxd=1024"
command_line_client = command_line_client % (self.target,
self.dut.get_memory_channels(), self.core_mask_host,
- self.socket_mem, self.dut.ports_info[self.dut_ports[0]]['pci'])
+ self.socket_mem, self.dut.ports_info[self.dut_ports[0]]['pci'], self.base_dir)
self.vhost.send_expect(command_line_client, "testpmd> ", 120)
self.vhost.send_expect("set fwd mac", "testpmd> ", 120)
self.vhost.send_expect("start", "testpmd> ", 120)
@@ -142,11 +143,11 @@ class TestPVPMultiPathPerformance(TestCase):
"""
command_line_user = "./%s/app/testpmd -n %d -c %s " + \
" --socket-mem %s --legacy-mem --no-pci --file-prefix=virtio " + \
- "--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,%s " + \
+ "--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=%s/vhost-net,%s " + \
"-- -i %s --rss-ip --nb-cores=1 --txd=1024 --rxd=1024"
command_line_user = command_line_user % (self.target,
self.dut.get_memory_channels(), self.core_mask_user,
- self.socket_mem, args["version"], args["path"])
+ self.socket_mem, self.base_dir, args["version"], args["path"])
self.vhost_user = self.dut.new_session(suite="user")
self.vhost_user.send_expect(command_line_user, "testpmd> ", 120)
self.vhost_user.send_expect("set fwd mac", "testpmd> ", 120)
--
2.17.2
More information about the dts
mailing list