[dts] [PATCH V1 01/15] tests/virtio_user_as_exceptional_path:Change the relative path to an absolute path.

zhu,shuai shuaix.zhu at intel.com
Thu Aug 29 09:16:41 CEST 2019


Change the relative path to an absolute path.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 tests/TestSuite_virtio_user_as_exceptional_path.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py b/tests/TestSuite_virtio_user_as_exceptional_path.py
index 0330f7e..1b1609e 100644
--- a/tests/TestSuite_virtio_user_as_exceptional_path.py
+++ b/tests/TestSuite_virtio_user_as_exceptional_path.py
@@ -79,13 +79,14 @@ class TestVirtioUserAsExceptionalPath(TestCase):
             self.socket_mem = '1024,1024'
 
         self.prepare_dpdk()
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         #
         # Run before each test case.
         #
         # Clean the execution ENV
-        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", "#")
         self.dut.send_expect("modprobe vhost-net", "#")
@@ -222,7 +223,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
         #
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        self.dut.send_expect("rm -rf ./vhost-net", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net" % self.base_dir, "#")
         time.sleep(2)
         self.dut.send_expect(
             "./usertools/dpdk-devbind.py -u %s" % (self.peer_pci), '# ', 30)
-- 
2.17.2



More information about the dts mailing list