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 BF536A0487 for ; Thu, 4 Jul 2019 04:43:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B59DC2C38; Thu, 4 Jul 2019 04:43:52 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 30C022C38 for ; Thu, 4 Jul 2019 04:43:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 19:43:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,449,1557212400"; d="scan'208";a="363227507" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 03 Jul 2019 19:43:50 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 19:43:50 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 19:43:49 -0700 Received: from shsmsx106.ccr.corp.intel.com ([169.254.10.240]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.134]) with mapi id 14.03.0439.000; Thu, 4 Jul 2019 10:43:47 +0800 From: "Yao, BingX Y" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 2/2] update this module to support single cpu env Thread-Index: AQHVMhIiZ8a1E8r4dUO0ag6OF0V2MKa5wFnA Date: Thu, 4 Jul 2019 02:43:47 +0000 Message-ID: <95BCD24840F32441BEA74E0F8A31839E058F3DA9@SHSMSX106.ccr.corp.intel.com> References: <1562208417-144025-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1562208417-144025-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: 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 2/2] update this module to support single cpu env 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" Tested-by: Yao, BingX Y -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai Sent: Thursday, July 4, 2019 10:47 AM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V1 2/2] update this module to support single cpu env fix regular expression of Locator to support both multi-core and single-cor= e cpu Signed-off-by: xiao,qimai --- nics/system_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nics/system_info.py b/nics/system_info.py index c813cd4..c4fea= 66 100644 --- a/nics/system_info.py +++ b/nics/system_info.py @@ -77,7 +77,7 @@ class SystemInfo(object): Size: 8192 MB Locator: DIMM_A1 Speed: 2133 MHz """ s_regex =3D r"(\s+)Size: (\d+) MB" - l_regex=3D r"(\s+)Locator: .*_(\w+)" + l_regex=3D r"(\s+)Locator: (CPU\d+_|)(\w+)" speed_regex =3D r"(\s+)Speed: (.*)" size =3D "" locate =3D "" @@ -92,7 +92,7 @@ class SystemInfo(object): size =3D m.group(2) l_m =3D re.match(l_regex, line) if l_m: - locate =3D l_m.group(2) + locate =3D l_m.group(3) s_m =3D re.match(speed_regex, line) if s_m: speed =3D s_m.group(2) -- 2.17.1