From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 25546C62E for ; Fri, 19 Jun 2015 02:44:27 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 18 Jun 2015 17:44:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,641,1427785200"; d="scan'208";a="510644819" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by FMSMGA003.fm.intel.com with ESMTP; 18 Jun 2015 17:44:26 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 19 Jun 2015 08:44:24 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.46]) by shsmsx102.ccr.corp.intel.com ([169.254.2.165]) with mapi id 14.03.0224.002; Fri, 19 Jun 2015 08:44:23 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] fix test case can't get ports Thread-Index: AQHQqXejHSnpK4oyMkCrk53ox+xw4p2y/eSA Date: Fri, 19 Jun 2015 00:44:23 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10E4E703@SHSMSX103.ccr.corp.intel.com> References: <1434598413-17893-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1434598413-17893-1-git-send-email-huilongx.xu@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] fix test case can't get ports 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: Fri, 19 Jun 2015 00:44:28 -0000 Thanks, applied into master branch. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilong,xu > Sent: Thursday, June 18, 2015 11:34 AM > To: dts@dpdk.org > Subject: [dts] [PATCH V1] fix test case can't get ports >=20 > From: huilong xu >=20 > issue: > test case can't get ports when used port config replace port map > fix: > not check dut port ipv6 connect stats >=20 > # Please enter the commit message for your changes. Lines starting >=20 > Signed-off-by: huilong xu > --- > framework/dut.py | 5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index a9b4ed0..7762958 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -394,9 +394,8 @@ class Dut(Crb): > if (socket is None or > port_info['numa'] =3D=3D -1 or > socket =3D=3D port_info['numa']): > - # port has link > - if (port_info['ipv6'] !=3D "Not connected" and > - self.tester.get_local_port(portid) !=3D = -1): > + # port has link, > + if self.tester.get_local_port(portid) !=3D -1: > ports.append(portid) > return ports >=20 > -- > 1.7.4.4