test suite reviews and discussions
 help / color / mirror / Atom feed
* [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

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