test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2]tests/ethtool_stats: add file-prefx to launch procinfo
@ 2020-01-16 11:05 Xiao Qimai
  2020-01-16 11:31 ` Xiao, QimaiX
  2020-01-17  5:34 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xiao Qimai @ 2020-01-16 11:05 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

add file-prefix to launch dpdk-procinfo

Signed-off-by: Xiao Qimai <qimaix.xiao@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 4f56885..f3152d9 100644
--- a/tests/TestSuite_ethtool_stats.py
+++ b/tests/TestSuite_ethtool_stats.py
@@ -159,7 +159,7 @@ class TestEthtoolStats(TestCase):
         ports_mask = reduce(lambda x, y: x | y,
                             [0x1 << x for x in range(ports_count)])
         self.query_tool = os.path.join(
-            self.target_dir, self.target, 'app', 'dpdk-procinfo')
+            self.target_dir, self.target, 'app', 'dpdk-procinfo --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):
@@ -471,6 +471,7 @@ class TestEthtoolStats(TestCase):
     def set_up_all(self):
         self.dut_ports = self.dut.get_ports(self.nic)
         self.verify(len(self.dut_ports) >= 1, 'Insufficient ports')
+        self.prefix = "dpdk_" + self.dut.prefix_subfix
         self.preset_test_environment()
 
     def set_up(self):
-- 
2.17.1


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

end of thread, other threads:[~2020-01-17  5:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 11:05 [dts] [PATCH V2]tests/ethtool_stats: add file-prefx to launch procinfo Xiao Qimai
2020-01-16 11:31 ` Xiao, QimaiX
2020-01-17  5:34 ` 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).