From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9FBC37CCD for ; Thu, 14 Sep 2017 08:19:21 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2017 23:19:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,391,1500966000"; d="scan'208";a="149025810" Received: from dpdk-test32.sh.intel.com (HELO [10.67.119.120]) ([10.67.119.120]) by orsmga005.jf.intel.com with ESMTP; 13 Sep 2017 23:19:19 -0700 Message-ID: <59BA99ED.8080102@intel.com> Date: Thu, 14 Sep 2017 23:02:05 +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: Jianbo Liu , Phil Yang CC: dts@dpdk.org, nd@arm.com References: <1505265525-15502-1-git-send-email-phil.yang@arm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Thu, 14 Sep 2017 06:19:22 -0000 Thanks all, applied in. On 09/14/2017 02:15 PM, Jianbo Liu wrote: > On 13 September 2017 at 09:18, Phil Yang 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 >> --- >> 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