[V1] tests/TestSuite_ethtool_stats:use api to get app name

Message ID 20200916105514.102884-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/TestSuite_ethtool_stats:use api to get app name |

Commit Message

Ling, WeiX Sept. 16, 2020, 10:55 a.m. UTC
  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(-)
  

Comments

Ling, WeiX Sept. 16, 2020, 3:01 a.m. UTC | #1
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):
  
Tu, Lijuan Sept. 16, 2020, 3:27 a.m. UTC | #2
> 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
  

Patch

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):