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 927C6A04EF; Mon, 1 Jun 2020 05:24:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A7081D414; Mon, 1 Jun 2020 05:24:10 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 6B0F41D410 for ; Mon, 1 Jun 2020 05:24:08 +0200 (CEST) IronPort-SDR: EmkxsRJWFGmtIDJzaiQHIou4kf+mTCi729ncuG9fr0XcqpiMvCVLaoAHdV0X6qY9wsM46Y+YYK /26v23Fe9w5w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 20:24:07 -0700 IronPort-SDR: J0K5sdNljWGWMso7/Z0d60tEU5ftrw821W4bd5z3g0RLogmUIOqIl6R9Q+7iLoomYU3Diq5YgA pkilfH+UUKBQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,459,1583222400"; d="scan'208";a="268181747" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 31 May 2020 20:24:07 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:24:06 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:24:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by shsmsx102.ccr.corp.intel.com ([169.254.2.36]) with mapi id 14.03.0439.000; Mon, 1 Jun 2020 11:24:04 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Yao, Lei A" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] tests/power_pbf: add one more check pattern Thread-Index: AQHWNMH0gSY+0L8J2ESQxjCTLR1/vqjDHqwQ Date: Mon, 1 Jun 2020 03:24:03 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5670A@SHSMSX101.ccr.corp.intel.com> References: <20200528073119.9344-1-yufengx.mo@intel.com> <20200528073119.9344-2-yufengx.mo@intel.com> In-Reply-To: <20200528073119.9344-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] tests/power_pbf: add one more check pattern 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: Thursday, May 28, 2020 3:31 PM > To: dts@dpdk.org; Yao, Lei A > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] tests/power_pbf: add one more check pattern >=20 >=20 > :: add one more check pattern. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_power_pbf.py | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_power_pbf.py b/tests/TestSuite_power_pbf.py > index 0f312f5..8fcab51 100644 > --- a/tests/TestSuite_power_pbf.py > +++ b/tests/TestSuite_power_pbf.py > @@ -367,6 +367,9 @@ class TestPowerPbf(TestCase): > pat_begin =3D ( > 'POWER: power_set_governor_performance: Power management ' > 'governor of lcore (\\d+) is already performance') > + pat_begin2 =3D ( > + 'Power management governor of lcore (\d+) ' > + 'has been set to performance successfully') > pat_end =3D \ > 'POWER: Initialized successfully for lcore (\\d+) power mana= gement' > pat_freq =3D ( > @@ -378,8 +381,12 @@ class TestPowerPbf(TestCase): > for line in output.splitlines(): > # if core output begin message > result =3D re.findall(pat_begin, line) > - if result: > - core_id =3D int(result[0]) > + result2 =3D re.findall(pat_begin2, line) > + if result or result2: > + if result: > + core_id =3D int(result[0]) > + elif result2: > + core_id =3D int(result2[0]) > flag =3D True > if flag: > result =3D re.findall(pat_freq, line) > -- > 2.21.0