From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id A4AC01B7CD for ; Wed, 4 Apr 2018 06:56:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2018 21:56:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,404,1517904000"; d="scan'208";a="34096707" Received: from dpdk-test32.sh.intel.com (HELO [10.67.118.224]) ([10.67.118.224]) by fmsmga002.fm.intel.com with ESMTP; 03 Apr 2018 21:56:16 -0700 Message-ID: <5AC4C8D9.1020400@intel.com> Date: Wed, 04 Apr 2018 20:45:13 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "zhu,shuai" , dts@dpdk.org References: <1522650314-106859-1-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1522650314-106859-1-git-send-email-shuaix.zhu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1] nics/system_info:Modify the regular match writing. 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: Wed, 04 Apr 2018 04:56:21 -0000 Thanks, shuai. Applied. On 04/02/2018 02:25 PM, zhu,shuai wrote: > To match the universality, modify the method of regular matching. > > Signed-off-by: zhu,shuai > --- > nics/system_info.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/nics/system_info.py b/nics/system_info.py > index 1f473d8..c813cd4 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 = r"(\s+)Size: (\d+) MB" > - l_regex= r"(\s+)Locator: DIMM_(\w+)" > + l_regex= r"(\s+)Locator: .*_(\w+)" > speed_regex = r"(\s+)Speed: (.*)" > size = "" > locate = ""