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

Message ID 20200918052626.9525-3-yux.jiang@intel.com (mailing list archive)
State Accepted
Headers
Series Modify virito func suites to support meson build |

Commit Message

Yu Jiang Sept. 18, 2020, 5:26 a.m. UTC
  From: JiangYu <yux.jiang@intel.com>

Adapt testpmd_name

Signed-off-by: JiangYu <yux.jiang@intel.com>
---
 tests/TestSuite_virtio_user_as_exceptional_path.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
  

Patch

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)