From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2252BA0566; Wed, 11 Mar 2020 05:37:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C956B1BF94; Wed, 11 Mar 2020 05:37:45 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 670571BF7F for ; Wed, 11 Mar 2020 05:37:43 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 21:37:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,539,1574150400"; d="scan'208";a="236167152" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 10 Mar 2020 21:37:42 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 10 Mar 2020 21:37:42 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 10 Mar 2020 21:37:41 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.206]) with mapi id 14.03.0439.000; Wed, 11 Mar 2020 12:37:39 +0800 From: "Tu, Lijuan" To: "Tu, Lijuan" , "Mo, YufengX" , "dts@dpdk.org" , "Xie, WeiX" , "Wang, Yinan" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work. Thread-Index: AQHV8c+DeMf658s/W0qbEuN8j9jyxKhC2RGAgAAA0uA= Date: Wed, 11 Mar 2020 04:37:38 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEBA15@SHSMSX101.ccr.corp.intel.com> References: <20200304025307.4677-1-yufengx.mo@intel.com> <20200304025307.4677-2-yufengx.mo@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0BBEB9DE@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEB9DE@SHSMSX101.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Sorry, applied V3 not v1. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Tu, Lijuan > Sent: Wednesday, March 11, 2020 12:35 PM > To: Mo, YufengX ; dts@dpdk.org; Xie, WeiX > ; Wang, Yinan > Cc: Mo, YufengX > Subject: Re: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work. >=20 > Applied, thanks >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > > Sent: Wednesday, March 4, 2020 10:53 AM > > To: dts@dpdk.org; Xie, WeiX ; Wang, Yinan > > > > Cc: Mo, YufengX > > Subject: [dts] [PATCH V1 1/1] metrics: add prefix for new frame work. > > > > > > add prefix for new frame work. > > > > Signed-off-by: yufengmx > > --- > > 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 =3D False > > > > def init_proc_info_tool(self): > > - option =3D ' -v -- --metrics' > > + option =3D f' -v -- --metrics {self.prefix}' > > self.dpdk_proc =3D os.path.join( > > self.target_dir, self.target, "app", "dpdk-procinfo" + opt= ion) > > self.metrics_stat =3D [] > > @@ -785,6 +785,7 @@ class TestMetrics(TestCase): > > def set_up_all(self): > > self.dut_ports =3D self.dut.get_ports(self.nic) > > self.verify(len(self.dut_ports) >=3D 2, "Not enough ports") > > + self.prefix =3D "dpdk_" + self.dut.prefix_subfix > > # prepare testing environment > > self.preset_test_environment() > > > > -- > > 2.21.0