test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1 0/1] vm_pw_mgmt_policy: fix string format issue
@ 2020-05-29  9:09 yufengmx
  2020-05-29  9:09 ` [dts] [PATCH V1 1/1] tests/vm_pw_mgmt_policy: " yufengmx
  0 siblings, 1 reply; 2+ messages in thread
From: yufengmx @ 2020-05-29  9:09 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx

fix string format issue 

yufengmx (1):
  tests/vm_pw_mgmt_policy: fix string format issue

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

-- 
2.21.0


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

* [dts] [PATCH V1 1/1] tests/vm_pw_mgmt_policy: fix string format issue
  2020-05-29  9:09 [dts] [PATCH V1 0/1] vm_pw_mgmt_policy: fix string format issue yufengmx
@ 2020-05-29  9:09 ` " yufengmx
  0 siblings, 0 replies; 2+ messages in thread
From: yufengmx @ 2020-05-29  9:09 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


fix string format issue.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 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 8da21b6..00c7304 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}'",
+            "{0} -s \'{1}\'",
             "hwclock -w"]).format(date_tool, timestamp)
         self.d_a_con([cmd, '# ', 20])
         cmd = "{0} '+%H:00'".format(date_tool)
@@ -494,11 +494,11 @@ class TestVmPwMgmtPolicy(TestCase):
         cur_time = datetime.now()
         interval = (cur_time - pre_time).seconds
         timestamp = ori_sys_time + timedelta(seconds=interval)
-        FMT = '%Y-%m-%d %H:%M:%S'
+        FMT = '\'%Y-%m-%d %H:%M:%S\''
         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])
-- 
2.21.0


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  9:09 [dts] [PATCH V1 0/1] vm_pw_mgmt_policy: fix string format issue yufengmx
2020-05-29  9:09 ` [dts] [PATCH V1 1/1] tests/vm_pw_mgmt_policy: " yufengmx

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