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 EC4C5A0519; Fri, 3 Jul 2020 07:43:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8FAB1D9EA; Fri, 3 Jul 2020 07:43:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D72AA1D916 for ; Fri, 3 Jul 2020 07:43:27 +0200 (CEST) IronPort-SDR: xIc5fAe4RCQEIrrMmfBKDETb7FMNjy+CjOLqUuBFJginJ3hfoA1NDdIJbTNFC8PYvQRN8u7xpo tQ7izzxSJwrg== X-IronPort-AV: E=McAfee;i="6000,8403,9670"; a="212118231" X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="212118231" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 22:43:27 -0700 IronPort-SDR: TIIrErRkimieBATRMTMadaFjYFP2lo8xSb7OwpRU1tS0fqOI4YcJABgl10IW/YbpNJMD71IWWP kTfVDTX2+qCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,307,1589266800"; d="scan'208";a="304478779" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 02 Jul 2020 22:43:26 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 3 Jul 2020 13:43:15 +0800 Message-Id: <20200703054315.24901-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200703054315.24901-1-yufengx.mo@intel.com> References: <20200703054315.24901-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 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" resolve centos compatibility. Signed-off-by: yufengmx --- tests/TestSuite_vm_pw_mgmt_policy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py index 00c7304..654dc6b 100644 --- a/tests/TestSuite_vm_pw_mgmt_policy.py +++ b/tests/TestSuite_vm_pw_mgmt_policy.py @@ -473,7 +473,7 @@ class TestVmPwMgmtPolicy(TestCase): date_tool = "date" cmd = ';'.join([ "{0}", - "{0} -s \'{1}\'", + r"{0} -s \'{1}\'", "hwclock -w"]).format(date_tool, timestamp) self.d_a_con([cmd, '# ', 20]) cmd = "{0} '+%H:00'".format(date_tool) @@ -498,7 +498,7 @@ class TestVmPwMgmtPolicy(TestCase): real_time = timestamp.strftime(FMT) cmd = ';'.join([ "{0}", - "{0} -s \'{1}\'", + r"{0} -s \'{1}\'", "hwclock -w", "{0}", ]).format(date_tool, real_time) self.d_a_con([cmd, '# ', 20]) @@ -537,7 +537,7 @@ class TestVmPwMgmtPolicy(TestCase): if key_value == 'scaling_available_frequencies': cpu_info[cpu_id][key_value] = freqs[index] cpu_info[cpu_id][key_value] = \ - [int(item) for item in sorted(freqs[index].split())] \ + sorted([int(item) for item in sorted(freqs[index].split())]) \ if key_value == 'scaling_available_frequencies' else \ freqs[index] -- 2.21.0