test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Jiang, YuX" <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: JiangYu <yux.jiang@intel.com>
Subject: [dts] [PATCH V1 7/7] tests/TestSuite_loopback_multi_paths_port_restart: support meson build
Date: Fri, 18 Sep 2020 13:26:26 +0800	[thread overview]
Message-ID: <20200918052626.9525-8-yux.jiang@intel.com> (raw)
In-Reply-To: <20200918052626.9525-1-yux.jiang@intel.com>

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

Adapt testpmd_name

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

diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py
index 7a1448d..54c9756 100644
--- a/tests/TestSuite_loopback_multi_paths_port_restart.py
+++ b/tests/TestSuite_loopback_multi_paths_port_restart.py
@@ -58,6 +58,7 @@ class TestLoopbackPortRestart(TestCase):
         self.core_list_user = self.core_list[0:2]
         self.core_list_host = self.core_list[2:5]
         self.path=self.dut.apps_name['test-pmd']
+        self.testpmd_name = self.path.split("/")[-1]
 
     def set_up(self):
         """
@@ -65,7 +66,7 @@ class TestLoopbackPortRestart(TestCase):
         """
         # Clean the execution ENV
         self.dut.send_expect("rm -rf ./vhost.out", "#")
-        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", "#")
         # Prepare the result table
         self.table_header = ["FrameSize(B)", "Mode", "Throughput(Mpps)", "Cycle"]
@@ -78,7 +79,7 @@ class TestLoopbackPortRestart(TestCase):
         """
         start testpmd on vhost
         """
-        self.dut.send_expect("killall -s INT testpmd", "#")
+        self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
         self.dut.send_expect("rm -rf ./vhost-net*", "#")
         eal_param = self.dut.create_eal_parameters(cores=self.core_list_host, prefix='vhost', no_pci=True, vdevs=['net_vhost0,iface=vhost-net,queues=1,client=0'])
         command_line_client = self.path + eal_param + " -- -i --nb-cores=1 --txd=1024 --rxd=1024"
@@ -330,7 +331,7 @@ class TestLoopbackPortRestart(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.close_all_session()
         time.sleep(2)
 
-- 
2.7.4


  parent reply	other threads:[~2020-09-18  5:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18  5:26 [dts] [PATCH V1 0/7] Modify virito func suites to " Jiang, YuX
2020-09-18  5:26 ` [dts] [PATCH V1 1/7] tests/TestSuite_vm2vm_virtio_pmd: " Jiang, YuX
2020-09-18  5:26 ` [dts] [dst] [PATCH V1 2/7] tests/TestSuite_virtio_user_as_exceptional_path: " Jiang, YuX
2020-09-18  5:26 ` [dts] [PATCH V1 3/7] tests/TestSuite_vhost_virtio_user_interrupt: " Jiang, YuX
2020-09-18  5:26 ` [dts] [PATCH V1 4/7] tests/TestSuite_vdev_primary_secondary: " Jiang, YuX
2020-09-18  5:26 ` [dts] [PATCH V1 5/7] tests/TestSuite_loopback_virtio_user_server_mode: " Jiang, YuX
2020-09-18  5:26 ` [dts] [PATCH V1 6/7] tests/TestSuite_loopback_multi_queues: " Jiang, YuX
2020-09-18  5:26 ` Jiang, YuX [this message]
2020-09-22  8:05   ` [dts] [PATCH V1 7/7] tests/TestSuite_loopback_multi_paths_port_restart: " Ma, LihongX
2020-09-23  8:39 ` [dts] [PATCH V1 0/7] Modify virito func suites to " Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200918052626.9525-8-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).