[dts] [dst] [PATCH V1 2/7] tests/TestSuite_virtio_user_as_exceptional_path: support meson build

Jiang, YuX yux.jiang at intel.com
Fri Sep 18 07:26:21 CEST 2020


From: JiangYu <yux.jiang at intel.com>

Adapt testpmd_name

Signed-off-by: JiangYu <yux.jiang 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 3c04f55..3d54441 100644
--- a/tests/TestSuite_virtio_user_as_exceptional_path.py
+++ b/tests/TestSuite_virtio_user_as_exceptional_path.py
@@ -70,6 +70,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
         self.peer_pci_setup = False
         self.prepare_dpdk()
         self.app_testpmd_path = self.dut.apps_name['test-pmd']
+        self.testpmd_name = self.app_testpmd_path.split("/")[-1]
 
     def set_up(self):
         #
@@ -77,7 +78,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
         #
         # Clean the execution ENV
         self.dut.send_expect("rm -rf ./vhost-net*", "#")
-        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 qemu-system-x86_64", "#")
         self.dut.send_expect("modprobe vhost-net", "#")
         self.peer_pci_setup = False
@@ -316,7 +317,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
         #
         self.dut.kill_all()
         self.dut.close_session(self.vhost_user)
-        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 qemu-system-x86_64", "#")
         self.dut.send_expect("rm -rf ./vhost-net", "#")
         time.sleep(2)
-- 
2.7.4



More information about the dts mailing list