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 D8810A04E0; Wed, 27 Nov 2019 10:28:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B2E775B32; Wed, 27 Nov 2019 10:28:19 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F3A2658C3 for ; Wed, 27 Nov 2019 10:28:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2019 01:28:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,248,1571727600"; d="scan'208";a="220918031" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 27 Nov 2019 01:28:17 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 27 Nov 2019 01:28:16 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 27 Nov 2019 01:28:16 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.127]) with mapi id 14.03.0439.000; Wed, 27 Nov 2019 17:28:15 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]framework/dut: fix create_eal_parameters method Thread-Index: AQHVo3N4spVEeVnvC06GH4EzI7/9M6eewwsQ Date: Wed, 27 Nov 2019 09:28:13 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB6972D@SHSMSX101.ccr.corp.intel.com> References: <1574674372-20174-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1574674372-20174-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTFkYzdiMTgtYzlkMS00OTViLWJmNzktOGVmNTVkZWU2MzFmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRWVhaFwvQjNEUzFzMEFKQWl2XC9rS21FdlRTMzN6VE1sWHhJVk5Od0d6U3hVMUZyZGUwMXY3S2w0WVliYVRCNkJjIn0= 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]framework/dut: fix create_eal_parameters method 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Monday, November 25, 2019 5:33 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]framework/dut: fix create_eal_parameters method >=20 > fix create_eal_parameters method >=20 > Signed-off-by: Xiao Qimai > --- > framework/dut.py | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py index 4d8874a..f26b081 > 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -120,12 +120,13 @@ class Dut(Crb): > if config: > # deal with cores > if config.has_key('cores'): > - if config['cores'] =3D=3D '' or config['cores'].lower() = =3D=3D 'default': > - core_list =3D self.get_core_list(default_cores) > - elif type(config['cores']) =3D=3D list: > + if type(config['cores']) =3D=3D list: > core_list =3D config['cores'] > - else: > - core_list =3D self.get_core_list(config['cores'], so= cket=3Dsocket) > + elif isinstance(config['cores'], str): > + if config['cores'] =3D=3D '' or config['cores'].lowe= r() =3D=3D 'default': > + core_list =3D self.get_core_list(default_cores) > + else: > + core_list =3D self.get_core_list(config['cores']= , > + socket=3Dsocket) > else: > core_list =3D self.get_core_list(default_cores) >=20 > -- > 2.17.1