From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4E75E3977 for ; Sat, 30 Sep 2017 05:14:04 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP; 29 Sep 2017 20:14:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,455,1500966000"; d="scan'208";a="1225406363" Received: from dpdk-test32.sh.intel.com (HELO [10.67.119.120]) ([10.67.119.120]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2017 20:14:00 -0700 Message-ID: <59CF8660.9060001@intel.com> Date: Sat, 30 Sep 2017 19:56:16 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,huilong" , dts@dpdk.org References: <1506503265-29342-1-git-send-email-huilongx.xu@intel.com> <1506503265-29342-4-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1506503265-29342-4-git-send-email-huilongx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Sat, 30 Sep 2017 03:14:04 -0000 Huilong, One comment below. Thanks, Marvin On 09/27/2017 05:07 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. This output is not expected. You can work around this by using alternative session self.dut.alt_session. But anyway, ptpclient should not be killed. Please check where ptpclient was killed. > 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") >