[dts] [PATCH V1 1/1] metrics: add prefix for new frame work.
Tu, Lijuan
lijuan.tu at intel.com
Wed Mar 11 05:37:38 CET 2020
Sorry, applied V3 not v1.
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Tu, Lijuan
> Sent: Wednesday, March 11, 2020 12:35 PM
> To: Mo, YufengX <yufengx.mo at intel.com>; dts at dpdk.org; Xie, WeiX
> <weix.xie at intel.com>; Wang, Yinan <yinan.wang at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: Re: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work.
>
> Applied, thanks
>
> > -----Original Message-----
> > From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yufengmx
> > Sent: Wednesday, March 4, 2020 10:53 AM
> > To: dts at dpdk.org; Xie, WeiX <weix.xie at intel.com>; Wang, Yinan
> > <yinan.wang at intel.com>
> > Cc: Mo, YufengX <yufengx.mo at intel.com>
> > Subject: [dts] [PATCH V1 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..da192b9 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 -- --metrics {self.prefix}'
> > 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
More information about the dts
mailing list