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 B1917A0523; Mon, 6 Jul 2020 06:41:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 230C51D5DD; Mon, 6 Jul 2020 06:41:04 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id C84291D5D3 for ; Mon, 6 Jul 2020 06:41:02 +0200 (CEST) IronPort-SDR: Hjq31xWXQ84OYuH9UB+MBncm+qdiafOJMNf72CHZcSxmPNhp1LNy3evjB/K/9tqcL9JPsuGlW6 FzuHRfPuccKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9673"; a="145465100" X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="145465100" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2020 21:41:01 -0700 IronPort-SDR: GWbUk2oFO+93fGqwVXTA1iGxGREMmkp4hjx1Co90NoUWw8amqAU38ptXy/Crwb3onLI2PJxvuY fm6CaeXrvrtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,318,1589266800"; d="scan'208";a="482575157" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga006.fm.intel.com with ESMTP; 05 Jul 2020 21:41:01 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Mon, 6 Jul 2020 12:40:45 +0800 Message-Id: <20200706044045.24841-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200706044045.24841-1-yufengx.mo@intel.com> References: <20200706044045.24841-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" resolve centos compatibility. Signed-off-by: yufengmx --- tests/TestSuite_vm_pw_mgmt_policy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 = "date" cmd = ';'.join([ "{0}", - "{0} -s \'{1}\'", + "{0} -s 0", + "{0} -s '{1}'", "hwclock -w"]).format(date_tool, timestamp) self.d_a_con([cmd, '# ', 20]) cmd = "{0} '+%H:00'".format(date_tool) @@ -498,7 +499,7 @@ class TestVmPwMgmtPolicy(TestCase): real_time = timestamp.strftime(FMT) cmd = ';'.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 == '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