test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V2 0/1] vm_pw_mgmt_policy: resolve centos compatibility
@ 2020-07-06  4:40 yufengmx
  2020-07-06  4:40 ` [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: " yufengmx
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-07-06  4:40 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx

resolve centos compatibility 

v2: 
 -  fix date command string format. 

yufengmx (1):
  tests/vm_pw_mgmt_policy: resolve centos compatibility

 tests/TestSuite_vm_pw_mgmt_policy.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos compatibility
  2020-07-06  4:40 [dts] [PATCH V2 0/1] vm_pw_mgmt_policy: resolve centos compatibility yufengmx
@ 2020-07-06  4:40 ` " yufengmx
  2020-07-20  6:59   ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: yufengmx @ 2020-07-06  4:40 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


resolve centos compatibility.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos compatibility
  2020-07-06  4:40 ` [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: " yufengmx
@ 2020-07-20  6:59   ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-20  6:59 UTC (permalink / raw)
  To: Mo, YufengX, dts, Yao, Lei A; +Cc: Mo, YufengX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of yufengmx
> Sent: 2020^[$BG/^[(B7^[$B7n^[(B6^[$BF|^[(B 12:41
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: resolve centos
> compatibility
> 
> 
> resolve centos compatibility.
> 
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
>  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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  4:40 [dts] [PATCH V2 0/1] vm_pw_mgmt_policy: resolve centos compatibility yufengmx
2020-07-06  4:40 ` [dts] [PATCH V2 1/1] tests/vm_pw_mgmt_policy: " yufengmx
2020-07-20  6:59   ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox