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 6A27CA0540; Mon, 20 Jul 2020 08:59:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5F28C1BEE6; Mon, 20 Jul 2020 08:59:13 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 7D3EB1BED7 for ; Mon, 20 Jul 2020 08:59:11 +0200 (CEST) IronPort-SDR: HRsIflHOBb0hwwTQZctAN6nExqjMUxHu7F3DJnbniT/hsdchPcPN42gvNh5a6ts6QlyVftNerE PZ9vHV/YleOw== X-IronPort-AV: E=McAfee;i="6000,8403,9687"; a="147819555" X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="147819555" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2020 23:59:10 -0700 IronPort-SDR: /OmL38ermSe33UNglUPW80pBjxxZzgTbPtOOLEYpkDvGQ3ThW9NMfp2OlZfkkVMPbVczsahfSy mJDcgL2emk+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,374,1589266800"; d="scan'208";a="431513888" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 19 Jul 2020 23:59:10 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:59:10 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Jul 2020 23:59:09 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.22]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.49]) with mapi id 14.03.0439.000; Mon, 20 Jul 2020 14:59:06 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Yao, Lei A" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos compatibility Thread-Index: AQHWU0/Hi3vHqnnSuESccuN5UVaBBakQH+Jg Date: Mon, 20 Jul 2020 06:59:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC821D6@SHSMSX101.ccr.corp.intel.com> References: <20200706044045.24841-1-yufengx.mo@intel.com> <20200706044045.24841-2-yufengx.mo@intel.com> In-Reply-To: <20200706044045.24841-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="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos compatibility 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 On Behalf Of yufengmx > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B6=1B$BF|=1B(B 12:41 > To: dts@dpdk.org; Yao, Lei A > Cc: Mo, YufengX > Subject: [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos > compatibility >=20 >=20 > resolve centos compatibility. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_vm_pw_mgmt_policy.py | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py > b/tests/TestSuite_vm_pw_mgmt_policy.py > index 00c7304..37f49e4 100644 > --- a/tests/TestSuite_vm_pw_mgmt_policy.py > +++ b/tests/TestSuite_vm_pw_mgmt_policy.py > @@ -473,7 +473,8 @@ class TestVmPwMgmtPolicy(TestCase): > date_tool =3D "date" > cmd =3D ';'.join([ > "{0}", > - "{0} -s \'{1}\'", > + "{0} -s 0", > + "{0} -s '{1}'", > "hwclock -w"]).format(date_tool, timestamp) > self.d_a_con([cmd, '# ', 20]) > cmd =3D "{0} '+%H:00'".format(date_tool) @@ -498,7 +499,7 @@ cla= ss > TestVmPwMgmtPolicy(TestCase): > real_time =3D timestamp.strftime(FMT) > cmd =3D ';'.join([ > "{0}", > - "{0} -s \'{1}\'", > + "{0} -s '{1}'", > "hwclock -w", > "{0}", ]).format(date_tool, real_time) > self.d_a_con([cmd, '# ', 20]) > @@ -537,7 +538,7 @@ class TestVmPwMgmtPolicy(TestCase): > if key_value =3D=3D 'scaling_available_frequencies': > cpu_info[cpu_id][key_value] =3D freqs[index] > cpu_info[cpu_id][key_value] =3D \ > - [int(item) for item in sorted(freqs[index].split())]= \ > + sorted([int(item) for item in > + sorted(freqs[index].split())]) \ > if key_value =3D=3D 'scaling_available_frequencies' = else \ > freqs[index] >=20 > -- > 2.21.0