From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 029DE29C6 for ; Thu, 12 Oct 2017 08:23:33 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2017 23:23:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,364,1503385200"; d="scan'208";a="145590344" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 11 Oct 2017 23:23:32 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Thu, 12 Oct 2017 14:24:42 +0800 Message-Id: <1507789482-5368-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] 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: Thu, 12 Oct 2017 06:23:34 -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 | 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