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 6E55FA0566; Wed, 11 Mar 2020 05:34:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6492D1BF96; Wed, 11 Mar 2020 05:34:37 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A687823D for ; Wed, 11 Mar 2020 05:34:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 21:34:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="261024305" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 10 Mar 2020 21:34:34 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 10 Mar 2020 21:34:34 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.96]) with mapi id 14.03.0439.000; Wed, 11 Mar 2020 12:34:31 +0800 From: "Tu, Lijuan" To: "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/W0qbEuN8j9jyxKhC2RGA Date: Wed, 11 Mar 2020 04:34:31 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEB9DE@SHSMSX101.ccr.corp.intel.com> References: <20200304025307.4677-1-yufengx.mo@intel.com> <20200304025307.4677-2-yufengx.mo@intel.com> In-Reply-To: <20200304025307.4677-2-yufengx.mo@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" Applied, thanks > -----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. >=20 >=20 > add prefix for new frame work. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_metrics.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_metrics.py b/tests/TestSuite_metrics.py inde= x > 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 >=20 > 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" + optio= n) > 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() >=20 > -- > 2.21.0