[dts] [PATCH] tests/skeleton: fix case failed when ports were not ready.

Jianbo Liu jianbo.liu at linaro.org
Thu Sep 14 08:15:09 CEST 2017


On 13 September 2017 at 09:18, Phil Yang <phil.yang at arm.com> wrote:
> Sometime tests/skeleton will fail in capturing packets of the target
> RJ45 port while the connection is establishing.
> Add a delay to waiting for the connection ready.
>
> Signed-off-by: Phil Yang <phil.yang at arm.com>
> ---
>  tests/TestSuite_skeleton.py | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/TestSuite_skeleton.py b/tests/TestSuite_skeleton.py
> index a5cc591..77f95e1 100644
> --- a/tests/TestSuite_skeleton.py
> +++ b/tests/TestSuite_skeleton.py
> @@ -75,6 +75,8 @@ class TestSkeleton(TestCase):
>          cmd = self.path + " -c %s -n %d " % (self.coremask,self.dut.get_memory_channels())
>          self.dut.send_expect(cmd,"forwarding packets",60)
>
> +        time.sleep(5)
> +
>          self.iface_port0 = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
>          self.iface_port1 = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
>
> --
> 2.7.4
>

Acked-by: Jianbo Liu <jianbo.liu at linaro.org>


More information about the dts mailing list