test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
  2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
@ 2020-09-16 11:34 ` Jiang, YuX
  2020-09-23  7:56 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Jiang, YuX @ 2020-09-16 11:34 UTC (permalink / raw)
  To: dts; +Cc: Jiang, YuX

[-- Attachment #1: Type: text/plain, Size: 2092 bytes --]

Tested-by: Jiang, YuX <yux.jiang@intel.com>

    Best Regards
    Jiang yu

> -----Original Message-----
> From: Jiang, YuX
> Sent: Wednesday, September 16, 2020 7:35 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build
> using apps_name
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> update killall apps_name
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>
> ---
>  tests/TestSuite_vhost_pmd_xstats.py | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_vhost_pmd_xstats.py
> b/tests/TestSuite_vhost_pmd_xstats.py
> index f68385f..a3b0a2f 100755
> --- a/tests/TestSuite_vhost_pmd_xstats.py
> +++ b/tests/TestSuite_vhost_pmd_xstats.py
> @@ -73,6 +73,7 @@ class TestVhostPmdXstats(TestCase):
>          self.core_list_host = self.core_list[3:6]
>          self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
>          self.app_testpmd_path = self.dut.apps_name['test-pmd']
> +        self.testpmd_name=self.app_testpmd_path.split("/")[-1]
> 
>      def set_up(self):
>          """
> @@ -80,7 +81,7 @@ class TestVhostPmdXstats(TestCase):
>          Launch vhost sample using default params
>          """
>          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.vhost_user = self.dut.new_session(suite="vhost-user")
>          self.virtio_user = self.dut.new_session(suite="virtio-user")
> 
> @@ -345,10 +346,10 @@ class TestVhostPmdXstats(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, "#")
> 
>      def tear_down_all(self):
>          """
>          Run after each test suite.
>          """
> -        pass
> \ No newline at end of file
> +        pass
> --
> 2.7.4


[-- Attachment #2: TestVhostPmdXstats.log --]
[-- Type: application/octet-stream, Size: 22914 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
@ 2020-09-16 11:35 JiangYuX
  2020-09-16 11:34 ` Jiang, YuX
  2020-09-23  7:56 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: JiangYuX @ 2020-09-16 11:35 UTC (permalink / raw)
  To: dts; +Cc: JiangYu

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

update killall apps_name

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

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
index f68385f..a3b0a2f 100755
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -73,6 +73,7 @@ class TestVhostPmdXstats(TestCase):
         self.core_list_host = self.core_list[3:6]
         self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
         self.app_testpmd_path = self.dut.apps_name['test-pmd']
+        self.testpmd_name=self.app_testpmd_path.split("/")[-1]
 
     def set_up(self):
         """ 
@@ -80,7 +81,7 @@ class TestVhostPmdXstats(TestCase):
         Launch vhost sample using default params
         """
         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.vhost_user = self.dut.new_session(suite="vhost-user")
         self.virtio_user = self.dut.new_session(suite="virtio-user")
 
@@ -345,10 +346,10 @@ class TestVhostPmdXstats(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, "#")
 
     def tear_down_all(self):
         """
         Run after each test suite.
         """
-        pass
\ No newline at end of file
+        pass
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
  2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
  2020-09-16 11:34 ` Jiang, YuX
@ 2020-09-23  7:56 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-09-23  7:56 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

> Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using
> apps_name
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> update killall apps_name
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>

Applied

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
2020-09-16 11:34 ` Jiang, YuX
2020-09-23  7:56 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox