test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] nics/system_info:Modify the regular match writing.
@ 2018-04-02  6:25 zhu,shuai
  2018-04-04 12:45 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: zhu,shuai @ 2018-04-02  6:25 UTC (permalink / raw)
  To: dts; +Cc: zhu,shuai

To match the universality, modify the method of regular matching.

Signed-off-by: zhu,shuai <shuaix.zhu@intel.com>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] nics/system_info:Modify the regular match writing.
  2018-04-02  6:25 [dts] [PATCH V1] nics/system_info:Modify the regular match writing zhu,shuai
@ 2018-04-04 12:45 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-04-04 12:45 UTC (permalink / raw)
  To: zhu,shuai, dts

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 <shuaix.zhu@intel.com>
> ---
>   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 = ""

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-04  4:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-02  6:25 [dts] [PATCH V1] nics/system_info:Modify the regular match writing zhu,shuai
2018-04-04 12:45 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).