[dts] [PATCH V3 1/1] metrics: add prefix for new frame work.
Xie, WeiX
weix.xie at intel.com
Wed Mar 4 10:13:46 CET 2020
Tested-by: Xie,WeiX < weix.xie at intel.com>
Regards,
Xie Wei
-----Original Message-----
From: Mo, YufengX
Sent: Wednesday, March 4, 2020 4:26 PM
To: dts at dpdk.org; Wang, Yinan <yinan.wang at intel.com>; Xie, WeiX <weix.xie at intel.com>
Cc: Mo, YufengX <yufengx.mo at intel.com>
Subject: [dts][PATCH V3 1/1] metrics: add prefix for new frame work.
add prefix for new frame work.
Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
tests/TestSuite_metrics.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_metrics.py b/tests/TestSuite_metrics.py index 148365c..7fef17d 100644
--- a/tests/TestSuite_metrics.py
+++ b/tests/TestSuite_metrics.py
@@ -187,7 +187,7 @@ class TestMetrics(TestCase):
self.is_pmd_on = False
def init_proc_info_tool(self):
- option = ' -v -- --metrics'
+ option = f' -v --file-prefix={self.prefix} -- --metrics'
self.dpdk_proc = os.path.join(
self.target_dir, self.target, "app", "dpdk-procinfo" + option)
self.metrics_stat = []
@@ -785,6 +785,7 @@ class TestMetrics(TestCase):
def set_up_all(self):
self.dut_ports = self.dut.get_ports(self.nic)
self.verify(len(self.dut_ports) >= 2, "Not enough ports")
+ self.prefix = "dpdk_" + self.dut.prefix_subfix
# prepare testing environment
self.preset_test_environment()
--
2.21.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestMetrics.log
Type: application/octet-stream
Size: 461340 bytes
Desc: TestMetrics.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200304/e9165d81/attachment.obj>
More information about the dts
mailing list