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

lingwei weix.ling at intel.com
Wed Sep 16 12:55:14 CEST 2020


use api to get app name

Signed-off-by: lingwei <weix.ling at 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



More information about the dts mailing list