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 67D24A04DD; Thu, 22 Oct 2020 08:37:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 437FD1E2F; Thu, 22 Oct 2020 08:37:06 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D8F15F64 for ; Thu, 22 Oct 2020 08:37:04 +0200 (CEST) IronPort-SDR: fBTTTC1wKD7DdKMVVznEBegCx2or4o/ZIdAlDjUqys8ZESdk5gGOyPLm2MJ1vj6MJwDkFPHl5d OR6+usS7lALA== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="154434357" X-IronPort-AV: E=Sophos;i="5.77,403,1596524400"; d="scan'208";a="154434357" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 23:37:02 -0700 IronPort-SDR: lIXNxMOdnIp4FALQO4LSLjJ6CfcKIgRgXbHSBRRH6vTgeyF/oYxeOloF6J4TCH1O/FDvnmP9UX btu66+rJcJLw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,403,1596524400"; d="scan'208";a="523029132" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga006.fm.intel.com with ESMTP; 21 Oct 2020 23:37:02 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 21 Oct 2020 23:37:01 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 21 Oct 2020 23:37:00 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 21 Oct 2020 23:37:00 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.109) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 21 Oct 2020 23:37:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fRhhkB9jfiKmx+SeJwxcORvc4KcxDquhUWZXjHVvLTB9/otphfzA4SuBd+aWIJEXzwORTQQUH/P6NV7NCoOp+m5vAZuE7ix8ObnxaYCfyDQ0qaI30ZIwyx4VGZaAy38WZO0TRNG1mM4eVwBfvHho/+7HqmvoEMJAobg5rOTFi82rJWB1pd1bdT8aB8Hxp28wUPdGfPpnHdoK4Vwxn/HQMu+zZLOzZuWx/RYxJBmQzsF31FxVRLZTNwI6mSkXBIiatbTuph1lduibT1pJmZOQZsBHHwdCQcB3jbnDC9MEXQoM3xuzSRBlkMWihNIFDkeSkWxGh5yF6ghobg7ODJfDOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SAw8tu+3tucCg4+yquLOfQva/ktRIAxjEtVjUZog8HI=; b=A+IqnlaMsBSIJ8pVGE0o10PO1GKzXXVOTiaGOJOUK48wxuMgljX2wnYVBoZjVbAAlnwF7JeuPwAtgvAbklt2zA55iO3+dsvM9yEiIZfwPS6fl3j5AD2VlOaxWwUj+BqvTySBrr3QL7TPyu0O4HkniUSwlxU3TlT3lbcULD5nXcJe/QIXYRd/LC5C6bbH6UgHKD77wq1Lc9bz/A8mn1JaEs9YkaH26tbDaB0uEgEsjEq33YspmiDdFIiGVVWcH2hjFIWF0rnZIlf97kc2ed/xufkaE+sPTlahJka1dpnAU/JQlpmcfK+hiR7zaHW/Xg3G1T/Zg6zFmgVQ8wklwp0eTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SAw8tu+3tucCg4+yquLOfQva/ktRIAxjEtVjUZog8HI=; b=FhradmWshFca9tAFUUb3eUrknQZ4LURvhAdYIaNAgtMW6/aEC4FWRwG0CiRJNP8Hkej6IhSXObktVoaoDX4ehq92QTzPkokIN9qrdt/aNTMGzP0lgS7+RyeBaRTezrcRAMcfXHuIEqjqPFAt+4N5q/yDHrigjT0FFAb/v26q+m4= Received: from BN8PR11MB3715.namprd11.prod.outlook.com (2603:10b6:408:85::13) by BN7PR11MB2611.namprd11.prod.outlook.com (2603:10b6:406:aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Thu, 22 Oct 2020 06:36:58 +0000 Received: from BN8PR11MB3715.namprd11.prod.outlook.com ([fe80::422:be42:232e:20fa]) by BN8PR11MB3715.namprd11.prod.outlook.com ([fe80::422:be42:232e:20fa%6]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 06:36:58 +0000 From: "Ma, LihongX" To: "Tu, Lijuan" , "Mo, YufengX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V2 1/3] framework: check the python version Thread-Index: AQHWqBFEy50BH1Tg2kyHkOaN1RVs6ami5mMAgAAGhQCAAD4OMA== Date: Thu, 22 Oct 2020 06:36:58 +0000 Message-ID: References: <20201014071448.32119-1-yufengx.mo@intel.com> <20201014071448.32119-2-yufengx.mo@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 030673da-7438-461e-f914-08d87654e02b x-ms-traffictypediagnostic: BN7PR11MB2611: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: p8bwcIYpKQtlc2RQK2bSZy6X7zuWkKZ2nMOYqAxaWcMnw6ePtGxXQ+4BOdBBpdJi0ltU1CgX14WZK5LsQ30IUvKWPQ+LqrhufvqD4bHrSGQtM6cLKzK8fhIocoGvE7v2nWcowwgX6ba0wEyaTUgiB/x2CcyxieJjs7aSAHWxYTn75Nx5Lb75/41ipy5kW7mG9pH2hE3/zHPSIO8ic2/mt5tsdxobA0Er82Fa6eRW3hzpS81YTrWeRAzkhie/tKNvJSJc1CaUTwA1EhOZzTeLngPPgqN2GnEbzdKEO2J1fdA2pgOMFsfHJpLGCG0rDeOAkAcUhXhSDft4x7C6GdaE8g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3715.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(376002)(396003)(39860400002)(71200400001)(316002)(2906002)(8936002)(8676002)(86362001)(55016002)(6506007)(110136005)(33656002)(64756008)(186003)(76116006)(9686003)(26005)(66476007)(52536014)(478600001)(66556008)(7696005)(53546011)(66946007)(5660300002)(83380400001)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: K2USp+4Bf2+D5cTHPeDqIg3e20DiH15Wtkr3mU18Q3tUd47exmHaHmLJ0OyH4I9n7X1DlkhLD9KWpdFjWTbBrgc38kZAexiLSK+h3f2NDTlrACmsGsved4X6BedGVKy78NjiViRw9ICGpc7x8RPxkDIdx6I4Lg0fFGY/mvKvIX4hNScirFZm3bn76+HuvVa5rugMfcRdtqU+UAGhvzFUBYKubL45zBGxrv9+h3IFhsX4gH+2zomwvwPrUZCe+ebRF2vGfrhDAUQfgijI6eb6dJTO7kUF1TjKhX2EAjZAIogbG6CL3z6S+nW+lXpX3kNtCg5vQnoVWJ1T3DWHVnJyD87tP7PA93f3vCcJlOXVBwJYfBNLxRHfiuMiJU/vuMaKo0fF9aY3etAFRfCjelr0Dgv9djRMuJ0HsRGPjh5MFHqgRFueM4GGDuQQHudWBIZ2vas+wY1SDbJt+XAuiYpHnzHJsxGOMGSd5JAhv1GictpabTrv+AUZuQmkUT/jdwNa1JW802d9Zs3lz7kFuYTibgP1yur5sBdC0JRe9yFpzgWe3h7LY4ENVwE6jMK3rRQ8zJzvxxCH88RHdcyTR1Tpr92RJejHIgn+fp0PNqa7hmD5E1kxzB+99jhVyEe3AFaq+F2S9RxOjunP/QZO3cDhrA== Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3715.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 030673da-7438-461e-f914-08d87654e02b X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2020 06:36:58.2144 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KZ0KVyCrgoRgJAmCtFqkrBBG9LRvIuBBWEoUUiviKfT4zmj4eF0gYUiwtvg+LS5Otg1BaZVYG81b1Kewt4066Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2611 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V2 1/3] framework: check the python version 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" Lijuan and yufen The python3 version should >=3D 3.6.9 Regards, Ma,lihong > -----Original Message----- > From: Tu, Lijuan > Sent: Thursday, October 22, 2020 10:54 AM > To: Mo, YufengX ; dts@dpdk.org; Ma, LihongX > > Subject: RE: [dts] [PATCH V2 1/3] framework: check the python version >=20 > Hi Lihong, > Investigation of what's python version DTS support need to be completed > first. >=20 > > -----Original Message----- > > From: Mo, YufengX > > Sent: 2020=1B$BG/=1B(B10=1B$B7n=1B(B22=1B$BF|=1B(B 10:30 > > To: Tu, Lijuan ; dts@dpdk.org; Ma, LihongX > > > > Subject: RE: [dts] [PATCH V2 1/3] framework: check the python version > > > > So, checking python version > 3.6.0 is what you want to do? > > > > > > > -----Original Message----- > > > From: Tu, Lijuan > > > Sent: Thursday, October 22, 2020 9:18 AM > > > To: Mo, YufengX ; dts@dpdk.org; Ma, LihongX > > > > > > Cc: Mo, YufengX > > > Subject: RE: [dts] [PATCH V2 1/3] framework: check the python > > > version > > > > > > DTS only support Python3 now, it doesn't support Python2. But it > > > requires Python minus version. E.g. Python3.4 is not supported, it > > > requires > > version larger than 3.6x. > > > > > > > +def check_crb_python_version(crb): > > > > + cmd =3D 'python3 -V' > > > > > > It seems you are telling python version for python 3. If you are > > > using python3, > > how can it tell you python2. > > > > > > > + out =3D crb.send_expect(cmd, '#', 5) > > > > + pat =3D "Python (\d+).(\d+).(\d+)" > > > > + result =3D re.findall(pat, out) > > > > + if not result or int(result[0][0]) < 3: > > > > + crb.logger.warning( > > > > + ("WARNING: Tester node python version is lower than > python 3, " > > > > + "it is deprecated for use in DTS, " > > > Python2 have been replaced by Python2 in DTS, so the message is not > > reasonable. > > > > > > > + "and will not work in future releases.")) > > > > + crb.logger.warning("Please use Python 3 instead") > > > > + > > > > + > > > > +def check_dts_python_version(): > > > > + if sys.version_info.major < 3: > > > > + print(RED( > > > > + ("WARNING: Dts running node python version is lower > > > > +than python 3, > > " > > > > + "it is deprecated for use in DTS, " > > > > + "and will not work in future releases.")), > file=3Dsys.stderr) > > > > + print(RED("Please use Python 3 instead"), > > > > + file=3Dsys.stderr) > > > > -- > > > > 2.21.0 >=20