[dts] [PATCH V1] fix update_system case failed

Liu, Yong yong.liu at intel.com
Sat Sep 30 13:56:16 CEST 2017


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 <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")
>   



More information about the dts mailing list