[dts] [PATCH V1] fix update_system case failed

xu,huilong huilongx.xu at intel.com
Wed Sep 27 11:07:43 CEST 2017


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 at intel.com>
---
 tests/TestSuite_ptpclient.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_ptpclient.py b/tests/TestSuite_ptpclient.py
index 2f5e004..99c2619 100644
--- a/tests/TestSuite_ptpclient.py
+++ b/tests/TestSuite_ptpclient.py
@@ -148,6 +148,8 @@ 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'", "# ")
+        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



More information about the dts mailing list