From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by dpdk.org (Postfix) with ESMTP id E71767D4E for ; Thu, 14 Sep 2017 08:15:10 +0200 (CEST) Received: by mail-it0-f41.google.com with SMTP id v19so2523264ite.0 for ; Wed, 13 Sep 2017 23:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=z+tEURIA2PS/Gk514ZzsrQY1lGAL9iI4XzfiHD+Oggk=; b=Tmlz6HZSJps8AN7wpzaG/Ox8BWeNr8O5eqsieivS85qiA8w/q2T7fiP0LpBuPEmnIp tf4JALCIr1p0PcCZZ/nZg/Ea4Rs+WcYRYMLfZ5VLStCe7hgmUELe7pRNRbnPJT0+BeKf MzmI4KbTjmtVoB7wRoy9veVXfaBF4ZC24j+CA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=z+tEURIA2PS/Gk514ZzsrQY1lGAL9iI4XzfiHD+Oggk=; b=BG7nMwWlKzAJejopR79fwHUoomg1+B/BPoJHtDF0MARA1MoFcr7tLCtCB40pYo6DEG h5ppeGFQrPlFBN2+5bHC6v4ZTP0iPB+T1MI2EO6ocZJAb5u/JeVCRn2va2V0QK3qjsG6 m/hwbReuw1Uancv+K1O5vd+IuRWfI/7wPm07adiUVC+2NycEtm9J7xNcTCWQTB/BdW5K UrxX78UU9rCzXWpo4sAi80ddj4f2IctkfNNU9zGB4YFowkUfzxfzFRchmyWuKoPhS8KO rmvrSmdbAt234nACTyi0dvDy9Fa2sKtSosB2bHTrl5Var6/qjK6ksTU9Y+vftvhmLFIh bbYw== X-Gm-Message-State: AHPjjUhSilF0uNSmQTr+6eo19IxC74zbzbeN9CG4GP+iXbW1gvjKUhF9 7/0zF1HHcA6pCLdeC/kabzbbdCi5x5ORTliGIdYSDA== X-Google-Smtp-Source: AOwi7QDVSvjknuzuXyABiJ/DXwCZSZ1ZRY98uHsTyIMTt7OkLeSs9j1aSIM++jZHlAvSUNkfLC+lXgW1/bkXOYVDmvU= X-Received: by 10.36.215.198 with SMTP id y189mr1852863itg.58.1505369710222; Wed, 13 Sep 2017 23:15:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.138.131 with HTTP; Wed, 13 Sep 2017 23:15:09 -0700 (PDT) In-Reply-To: <1505265525-15502-1-git-send-email-phil.yang@arm.com> References: <1505265525-15502-1-git-send-email-phil.yang@arm.com> From: Jianbo Liu Date: Thu, 14 Sep 2017 14:15:09 +0800 Message-ID: To: Phil Yang Cc: dts@dpdk.org, nd@arm.com Content-Type: text/plain; charset="UTF-8" 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:15:12 -0000 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