From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 0F1DA56AB for ; Thu, 18 Aug 2016 09:43:12 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 18 Aug 2016 00:43:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,538,1464678000"; d="scan'208";a="867430656" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 18 Aug 2016 00:42:57 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 18 Aug 2016 00:42:57 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0248.002; Thu, 18 Aug 2016 15:42:55 +0800 From: "Liu, Yong" To: xueqin.lin , "dts@dpdk.org" CC: "Lin, Xueqin" Thread-Topic: [dts][PATCH] tests_ftag: fix expected output time when striping port glort ID Thread-Index: AQHR+RgZKvW6DyIuHES2+DgNK+bNraBOVfXA Date: Thu, 18 Aug 2016 07:42:55 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E22270579@SHSMSX103.ccr.corp.intel.com> References: <1471500985-3542-1-git-send-email-xlin15@shecgisg005.sh.intel.com> In-Reply-To: <1471500985-3542-1-git-send-email-xlin15@shecgisg005.sh.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTQzMjI4MTMtOTFkYy00M2Y0LWE2OTUtNDg4NjJhODgyNTM0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImpjeFNuQ2RvY1wvbmlEMmJqRE1peGtcLzRVakRrTytWMjM1Mm4zbTZPUWMxbz0ifQ== x-ctpclassification: CTP_IC 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] tests_ftag: fix expected output time when striping port glort ID 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, 18 Aug 2016 07:43:13 -0000 Thanks, applied. > -----Original Message----- > From: xueqin.lin [mailto:xlin15@ecsmtp.sh.intel.com] > Sent: Thursday, August 18, 2016 2:16 PM > To: Liu, Yong; dts@dpdk.org > Cc: Lin, Xueqin > Subject: [dts][PATCH] tests_ftag: fix expected output time when striping > port glort ID >=20 > From: Xueqin Lin >=20 > It is impossible to wait some long time for expected output, just fix as > default value. >=20 >=20 > diff --git a/nics/rrc.py b/nics/rrc.py > index 62dc8d2..a6ac175 100644 > --- a/nics/rrc.py > +++ b/nics/rrc.py > @@ -259,7 +259,7 @@ class RedRockCanyou(NetDevice): > return None > else: > port_value =3D res.group(2) > - out =3D self.ctrl_crb.send_expect("show stacking logical-port al= l", > "<0>%",10000) > + out =3D self.ctrl_crb.send_expect("show stacking logical-port al= l", > "<0>%") > pattern =3D r"([0-9a-z]{6})+(\s)+(%s)+" %port_value > s =3D re.compile(pattern) > res =3D s.search(out) > -- > 2.5.5