From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 0C8271041 for ; Wed, 13 Sep 2017 03:18:57 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A8261529; Tue, 12 Sep 2017 18:18:57 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (phil-virtualbox.shanghai.arm.com [10.169.38.96]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6CB343F578; Tue, 12 Sep 2017 18:18:56 -0700 (PDT) From: Phil Yang To: dts@dpdk.org Cc: nd@arm.com, Phil Yang Date: Wed, 13 Sep 2017 09:18:45 +0800 Message-Id: <1505265525-15502-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] tests/skeleton: fix case failed when ports were not ready. 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: Wed, 13 Sep 2017 01:18:58 -0000 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 --- 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