test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name
  2020-09-16 10:55 [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name lingwei
@ 2020-09-16  3:01 ` Ling, WeiX
  2020-09-16  3:27 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Ling, WeiX @ 2020-09-16  3:01 UTC (permalink / raw)
  To: dts

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

Tested-by: Ling, Wei <weix.ling@intel.com>

Regards,
Ling Wei

-----Original Message-----
From: Ling, WeiX <weix.ling@intel.com> 
Sent: Wednesday, September 16, 2020 06:55 PM
To: dts@dpdk.org
Cc: Ling, WeiX <weix.ling@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name

use api to get app name

Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/TestSuite_ethtool_stats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_ethtool_stats.py b/tests/TestSuite_ethtool_stats.py
index f3152d9..c0032c8 100644
--- a/tests/TestSuite_ethtool_stats.py
+++ b/tests/TestSuite_ethtool_stats.py
@@ -158,8 +158,9 @@ class TestEthtoolStats(TestCase):
         ports_count = len(self.dut_ports)
         ports_mask = reduce(lambda x, y: x | y,
                             [0x1 << x for x in range(ports_count)])
+        app_name = self.dut.apps_name['proc-info'].split('/')[-1]
         self.query_tool = os.path.join(
-            self.target_dir, self.target, 'app', 'dpdk-procinfo --file-prefix=%s' % self.prefix)
+            self.target_dir, self.target, 'app', app_name + '--file-prefix=%s' % self.prefix)
         self.dpdk_proc_info = "%s -v -- -p %s" % (self.query_tool, ports_mask)
 
     def parse_proc_info_xstat_output(self, msg):
-- 
2.17.1


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

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

* Re: [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name
  2020-09-16 10:55 [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name lingwei
  2020-09-16  3:01 ` Ling, WeiX
@ 2020-09-16  3:27 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-09-16  3:27 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> Subject: [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name
> 
> use api to get app name
> 
> Signed-off-by: lingwei <weix.ling@intel.com>
> ---
>  tests/TestSuite_ethtool_stats.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied

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

* [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name
@ 2020-09-16 10:55 lingwei
  2020-09-16  3:01 ` Ling, WeiX
  2020-09-16  3:27 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lingwei @ 2020-09-16 10:55 UTC (permalink / raw)
  To: dts; +Cc: lingwei

use api to get app name

Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/TestSuite_ethtool_stats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_ethtool_stats.py b/tests/TestSuite_ethtool_stats.py
index f3152d9..c0032c8 100644
--- a/tests/TestSuite_ethtool_stats.py
+++ b/tests/TestSuite_ethtool_stats.py
@@ -158,8 +158,9 @@ class TestEthtoolStats(TestCase):
         ports_count = len(self.dut_ports)
         ports_mask = reduce(lambda x, y: x | y,
                             [0x1 << x for x in range(ports_count)])
+        app_name = self.dut.apps_name['proc-info'].split('/')[-1]
         self.query_tool = os.path.join(
-            self.target_dir, self.target, 'app', 'dpdk-procinfo --file-prefix=%s' % self.prefix)
+            self.target_dir, self.target, 'app', app_name + '--file-prefix=%s' % self.prefix)
         self.dpdk_proc_info = "%s -v -- -p %s" % (self.query_tool, ports_mask)
 
     def parse_proc_info_xstat_output(self, msg):
-- 
2.17.1


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

end of thread, other threads:[~2020-09-16  3:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 10:55 [dts] [PATCH V1] tests/TestSuite_ethtool_stats:use api to get app name lingwei
2020-09-16  3:01 ` Ling, WeiX
2020-09-16  3:27 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://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/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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