[dts] [PATCH V3 1/1] metrics: add prefix for new frame work.

Tu, Lijuan lijuan.tu at intel.com
Wed Mar 11 05:39:34 CET 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yufengmx
> 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



More information about the dts mailing list