From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 797985F2E for ; Mon, 2 Apr 2018 08:24:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Apr 2018 23:23:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,394,1517904000"; d="scan'208";a="43237369" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 01 Apr 2018 23:23:58 -0700 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Mon, 2 Apr 2018 14:25:14 +0800 Message-Id: <1522650314-106859-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Mon, 02 Apr 2018 06:24:01 -0000 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 = "" -- 1.9.3