From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id DA9C22C01 for ; Wed, 27 Sep 2017 11:06:37 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP; 27 Sep 2017 02:06:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,444,1500966000"; d="scan'208";a="139971165" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 27 Sep 2017 02:06:36 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Wed, 27 Sep 2017 17:07:43 +0800 Message-Id: <1506503265-29342-4-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1506503265-29342-1-git-send-email-huilongx.xu@intel.com> References: <1506503265-29342-1-git-send-email-huilongx.xu@intel.com> Subject: [dts] [PATCH V1] fix update_system case failed X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2017 09:06:38 -0000 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 --- 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