* [dts] [PATCH V1] fix test failed when master time less then slave time
@ 2017-09-05 2:04 xu,huilong
2017-09-06 12:18 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2017-09-05 2:04 UTC (permalink / raw)
To: dts; +Cc: xu,huilong
update regular expression for get time difference when master time less then slave time
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_ptpclient.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py
index f68c81b..2f5e004 100644
--- a/tests/TestSuite_ptpclient.py
+++ b/tests/TestSuite_ptpclient.py
@@ -107,8 +107,8 @@ class TestPtpClient(TestCase):
self.kill_ptpclient()
self.verify("T1" and "T2" and "T3" and "T4" in out, "T1,T2,T3,T4 clock error")
- utils.regexp(out, r'Delta between master and slave clocks\:(\d+)ns')
- pat = re.compile(r'Delta between master and slave clocks\:(\d+)ns')
+ utils.regexp(out, r'Delta between master and slave clocks\:(-?\d+)ns')
+ pat = re.compile(r'Delta between master and slave clocks\:(-?\d+)ns')
Delta_list = pat.findall(out)
Delta = map(int, Delta_list)
Delta_ns = self.average(Delta)
@@ -135,8 +135,8 @@ class TestPtpClient(TestCase):
self.kill_ptpclient()
self.verify("T1" and "T2" and "T3" and "T4" in out, "T1,T2,T3,T4 clock error")
- utils.regexp(out, r'Delta between master and slave clocks\:(\d+)ns')
- pat = re.compile(r'Delta between master and slave clocks\:(\d+)ns')
+ utils.regexp(out, r'Delta between master and slave clocks\:(-?\d+)ns')
+ pat = re.compile(r'Delta between master and slave clocks\:(-?\d+)ns')
Delta_list = pat.findall(out)
Delta = map(int, Delta_list)
Delta_ns = self.average(Delta)
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] fix test failed when master time less then slave time
2017-09-05 2:04 [dts] [PATCH V1] fix test failed when master time less then slave time xu,huilong
@ 2017-09-06 12:18 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-09-06 12:18 UTC (permalink / raw)
To: xu,huilong, dts
Thanks, applied.
On 09/05/2017 10:04 AM, xu,huilong wrote:
> update regular expression for get time difference when master time less then slave time
>
> Signed-off-by: xu,huilong<huilongx.xu@intel.com>
> ---
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-06 3:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 2:04 [dts] [PATCH V1] fix test failed when master time less then slave time xu,huilong
2017-09-06 12:18 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).