Tested-by: Ling, Wei Regards, Ling Wei -----Original Message----- From: Ling, WeiX Sent: Wednesday, September 16, 2020 06:55 PM To: dts@dpdk.org 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 --- 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