test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] fix update_system case failed
@ 2017-10-12  6:24 xu,huilong
  2017-10-16 16:42 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2017-10-12  6:24 UTC (permalink / raw)
  To: dts; +Cc: xu,huilong

    some times, when use data cmdline get dut systerm time, after kill ptpclent example.
    the output will include "[1]+  Terminated              ./examples/ptpclient/build/ptpclient -c f -n 3 -- -T 1 -p 0x1"
    so should get systerm time again.

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 tests/TestSuite_ptpclient.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py
index 2f5e004..9c723a3 100644
--- a/tests/TestSuite_ptpclient.py
+++ b/tests/TestSuite_ptpclient.py
@@ -148,6 +148,10 @@ class TestPtpClient(TestCase):
 
         tester_out = self.tester.send_expect("date -u '+%Y-%m-%d %H:%M'", "# ")
         dut_out = self.dut.send_expect("date -u '+%Y-%m-%d %H:%M'", "# ")
+        # some times, when use data cmdline get dut systerm time, after kill ptpclent example.
+        # the output will include kill process info so should get systerm time again.
+        if len(dut_out) != len(tester_out):
+            dut_out = self.dut.send_expect("date -u '+%Y-%m-%d %H:%M'", "# ")
 
         self.verify(tester_out == dut_out, "the DUT time synchronous error")
 
-- 
1.9.3

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

* Re: [dts] [PATCH V2] fix update_system case failed
  2017-10-12  6:24 [dts] [PATCH V2] fix update_system case failed xu,huilong
@ 2017-10-16 16:42 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-10-16 16:42 UTC (permalink / raw)
  To: xu,huilong, dts

Thanks, huilong. Applied.

On 10/12/2017 02:24 PM, xu,huilong wrote:
>      some times, when use data cmdline get dut systerm time, after kill ptpclent example.
>      the output will include "[1]+  Terminated              ./examples/ptpclient/build/ptpclient -c f -n 3 -- -T 1 -p 0x1"
>      so should get systerm time again.
>
> Signed-off-by: xu,huilong<huilongx.xu@intel.com>

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

end of thread, other threads:[~2017-10-16  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-12  6:24 [dts] [PATCH V2] fix update_system case failed xu,huilong
2017-10-16 16:42 ` 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).