[dts] [PATCH] tests/skeleton: fix case failed when ports were not ready.
Phil Yang
phil.yang at arm.com
Wed Sep 13 03:18:45 CEST 2017
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
More information about the dts
mailing list