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 7A4D6A04DE; Fri, 23 Oct 2020 09:51:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44CA06A72; Fri, 23 Oct 2020 09:51:29 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DF7A35323 for ; Fri, 23 Oct 2020 09:51:25 +0200 (CEST) IronPort-SDR: AY7/XnyG/uG7uB+s5r9Ymw6ljqXDDpWYlU54HAxzxe8Ze/p+wlCEkRkcUgGl3JaM0+VpnHgWjk km+RTWD5nxtg== X-IronPort-AV: E=McAfee;i="6000,8403,9782"; a="185338626" X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="185338626" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 00:51:14 -0700 IronPort-SDR: 4wTX0hrPq33nTVpjqOYDzlJ12hKeUbIf6x6QhjovjY5MRl0T/FUDRJW27KD8U5LkpFzVyjSLYd qp5RMmoVNg7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,407,1596524400"; d="scan'208";a="333236834" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 23 Oct 2020 00:51:13 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 23 Oct 2020 00:51:10 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 23 Oct 2020 00:51:10 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.109) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 23 Oct 2020 00:51:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LNgNnnQtBGfLsbrt7KrjZxQXXHAr0Blj4EyyG3fjp+2QfGOLZRmKBKo722VaSqFzRl0LR0x/qGpHXosz1m+uYW5nOhVw3LYrLgMHcf4EP3OqrZJaS9aDTit334YtWvNXVMIKswYfZpcKFUkajquKstFfCtmFGvOQE/h3VbACdksl2Re7ADN3EKLMblozupNEenLdIerBlhRvkwHNnlfSomcFRUgya4GTrQaCqgCvPTGMG25HS2b3dhjAHgT7R51i7y+NLUALtwjlpb2MAounCKjNsFYmEF0Mn2N/Fc3YTR/0BuqAUn/0W84DWEzTCVPVdEPyY+pUg4IS3L6WgvCaBw== 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=ze9f+CBy4WuIQvyEVfPpxJjvVqF7nj36w8OIUuFIMd0=; b=cM0r73JAklkxm7x0ii76zNI8egndjfx26n9/pxgbGdGQDz+FIjNEdo55r0GVHbXGlBGS8E2b2PRP/C9SY37yFYQKS2OQVgVgc9L3eI39dw2egosqjz6M9quO+efULIUlI+rJyOBvKK9OQGrbFyqXNudqXFZeQ9eYjCyHImqVyF6zCP/jbHtrSJCHXToup5gr2DMxPHcNwWUy2+OKAjP9lcXtqpK9E8CmJSq/DfTk4Wuw4LlwNIk1fLLxiNf+VVXPKn4PicceqSQ/cz2UtQ7/klVKom6jS7ht+fxMJJrn0xJ8Ll9ejgxkVrpF4Aq/IULMMcHp2WZVVLldqZO58GMhvQ== 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=ze9f+CBy4WuIQvyEVfPpxJjvVqF7nj36w8OIUuFIMd0=; b=aKdzFaeqKUCG7MidIfspDe79vzDvWpT0HjV/RyK9evfFLcelikMgBwxRviOVjCncf4C+UVESOlMSNoODE/VvcKgv1TxAQvrKj2Sk9KNeRbZ9C/ECR4welG7V+3bpkPmZ2bRXIsYV7q888N4BTW5mBUD+uwud7qj2/kb7EtRh3M8= Received: from BN8PR11MB3715.namprd11.prod.outlook.com (2603:10b6:408:85::13) by BN6PR11MB1250.namprd11.prod.outlook.com (2603:10b6:404:49::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20; Fri, 23 Oct 2020 07:51:00 +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; Fri, 23 Oct 2020 07:51:00 +0000 From: "Ma, LihongX" To: "Mo, YufengX" , "dts@dpdk.org" , "Tu, Lijuan" Thread-Topic: [dts][PATCH V3 1/3] framework: check the python version Thread-Index: AQHWqQwsPbCIoFypxkqTZQQq6303y6mkz34g Date: Fri, 23 Oct 2020 07:51:00 +0000 Message-ID: References: <20201023070959.32951-1-yufengx.mo@intel.com> <20201023070959.32951-2-yufengx.mo@intel.com> In-Reply-To: <20201023070959.32951-2-yufengx.mo@intel.com> 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: 07701496-e89b-409a-9b7c-08d877286254 x-ms-traffictypediagnostic: BN6PR11MB1250: 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:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +6WT+1hCO+ETafWmY9aWd6z0pk0EyR+7o10XXH/4rZN/aeRqoiO0nYyVTuzzuO3z6MZpFUD5fBraW0wLLlLNAxbgf5kfc3iH5JJ2hb7ElsmBOYedkr6trH6hzkFuyztsu8gwR6BG72l7grGRAquS9GiJug9aJxHR2KHW5qY+1QbBO0YDFZz+xK13B3ybSm/vsSZTxthTpX4xMGQClt674AQxfowJnJI9gX5wIZoNbl08dM8yw3hrJVLZArVhlNQPX5gZLfEMRSfVv8NBXf35qywCC1dHE8pwxFbsKDmzUL+A3e/frQrKvELcKnHI3nxyNHaIZc+t2nBXe48TF7Z0zw== 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)(136003)(376002)(346002)(396003)(39860400002)(366004)(6636002)(76116006)(66556008)(71200400001)(478600001)(9686003)(66946007)(8676002)(2906002)(316002)(55016002)(110136005)(8936002)(83380400001)(64756008)(66446008)(66476007)(6506007)(53546011)(86362001)(26005)(33656002)(5660300002)(186003)(52536014)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: zmEjfCceotucwGs7GOv4WYkGyVC3HpXlG5WTHOF/5F5bvaXEbfMloVYWaQgFpZeW/rSr3xhZ+xpA2dzMWuBnlKy4wn0Kdc/yLF7hCbyiUdGA2wixHwBX0ScS2Uz2M5WUDIgGg4dQ1m2Anc8GeI8nutJ1dkzLP/lKPbh5FJCIQxR2Hq6vOM/poXtNEWNRIWsIqhzomkKIPc3Z2ZePsCPgQgxvFUPbZOmAqVo2qEMAkpNtLZ2jjYBeR7+ExjxSmYreRzoRHE8VGozOVnbBBqzdQ1G+LGgMiYaC1eUBvfsxNb8THMTj2odpQJM5ptlJ+wwS6AQ2Of/0SP4ClqcDBizfSlUSADxAz2vfyMArNepfJ7sijhtJNOdMEStOz3irYph6bKl9u7+FY+7OTKUrftJLzE08qeKJQ7Xnt/FbvTXZXcqd82dTqo5mL8CbHMr+Uxj70ie5kN9HuSpGTUhistiVLLKIjyVP887s5hJg0VLHPEo7X6PEEKnExVC2+RKbUfFgZgkttGX+SFPIBNpaVQ4k+rgfsipwf5o/PBUPUmF7XIkV0WuBZxbfT5K/SQAXHKvSiWViq0ksE/Wlow/ciEKTlM9sa/x6YUrEWwIoQHrGL5k+GF9n5wcVFDPDKACD/9UL7TTwqS31t4hDz9wlzibVzg== Content-Type: text/plain; charset="us-ascii" 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: 07701496-e89b-409a-9b7c-08d877286254 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2020 07:51:00.4014 (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: /XmVFvsrYNRYK5JnPF0AmgIwXGMliuhI6L3NF8IqAft/1sa9TCUSbdW02EJtkr2ZgILONne9RotqvjKeO5jahw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1250 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V3 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" > -----Original Message----- > From: Mo, YufengX > Sent: Friday, October 23, 2020 3:10 PM > To: dts@dpdk.org; Tu, Lijuan ; Ma, LihongX > > Cc: Mo, YufengX > Subject: [dts][PATCH V3 1/3] framework: check the python version >=20 >=20 > implement a method to check the python version of tester and the server > that run dts. > If the version is python2, print a warning message. >=20 > Signed-off-by: yufengmx > --- > framework/utils.py | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) >=20 > diff --git a/framework/utils.py b/framework/utils.py index e74e6c5..9082e= 35 > +def check_dts_python_version(): > + if sys.version_info.major < 3 or \ > + sys.version_info.minor < 6 or \ > + sys.version_info.micro < 9: > + print(RED( > + ("WARNING: Dts running node python version is lower than > python 3.6, " > + "it is deprecated for use in DTS, " > + "and will not work in future releases.")), file=3Dsys.stder= r) > + print(RED("Please use Python >=3D 3.6.9 instead"), > +file=3Dsys.stderr) > -- > 2.21.0 As the judgment condition is 'or', I think if my python3 version is 3.8.2, = it will still print the warning information. Can you check and optimize it ? Regards, Ma,lihong