From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6472A2E1B for ; Thu, 5 Sep 2019 05:26:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC5741EB55; Thu, 5 Sep 2019 05:26:44 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 09A181EB51 for ; Thu, 5 Sep 2019 05:26:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2019 20:26:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,469,1559545200"; d="scan'208";a="382743662" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 04 Sep 2019 20:26:42 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Sep 2019 20:26:41 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 4 Sep 2019 20:26:41 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.53]) with mapi id 14.03.0439.000; Thu, 5 Sep 2019 11:26:39 +0800 From: "Mo, YufengX" To: "dts@dpdk.org" , "Tu, Lijuan" , "Chen, Zhaoyan" Thread-Topic: [dts][PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up ready Thread-Index: AQHVY5mWG69sweBBgkuanzKNRsVUGaccbB+w Date: Thu, 5 Sep 2019 03:26:38 +0000 Message-ID: References: <20190905032631.11298-1-yufengx.mo@intel.com> <20190905032631.11298-2-yufengx.mo@intel.com> In-Reply-To: <20190905032631.11298-2-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Tested by Mo, YufengX > -----Original Message----- > From: Mo, YufengX > Sent: Thursday, September 5, 2019 11:27 AM > To: dts@dpdk.org; Tu, Lijuan ; Chen, Zhaoyan > Cc: Mo, YufengX > Subject: [dts][PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up ready >=20 >=20 > wait 5 second after l2fwd boot up. It is aimed to make sure trex detect l= ink up status. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_l2fwd.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py > index e2c4118..ace5dff 100644 > --- a/tests/TestSuite_l2fwd.py > +++ b/tests/TestSuite_l2fwd.py > @@ -196,7 +196,10 @@ class TestL2fwd(TestCase): >=20 > # self.dut.send_expect(command_line, "memory mapped", 60) > self.dut.send_expect(command_line, "L2FWD: entering main= loop", 60) > - > + # wait 5 second after l2fwd boot up. > + # It is aimed to make sure trex detect link up status. > + if self.tester.is_pktgen: > + time.sleep(5) > info =3D "Executing l2fwd using %s queues, frame size %d= and %s setup.\n" % \ > (queues['queues'], frame_size, self.core_config) >=20 > -- > 2.21.0