test suite reviews and discussions
 help / color / mirror / Atom feed
From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V2] fix update_system case failed
Date: Thu, 12 Oct 2017 14:24:42 +0800	[thread overview]
Message-ID: <1507789482-5368-1-git-send-email-huilongx.xu@intel.com> (raw)

    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

             reply	other threads:[~2017-10-12  6:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-12  6:24 xu,huilong [this message]
2017-10-16 16:42 ` Liu, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1507789482-5368-1-git-send-email-huilongx.xu@intel.com \
    --to=huilongx.xu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).