[PATH,V1] framework/crb: optimization script
Checks
Commit Message
the format of priv-flags may be like 'link-down-on-close: on',
so regular expressions need to be optimized
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
framework/crb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100755 => 100644 framework/crb.py
Comments
> -----Original Message-----
> From: Jiale Song <songx.jiale@intel.com>
> Sent: 2022年1月14日 21:38
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATH V1] framework/crb: optimization script
>
> the format of priv-flags may be like 'link-down-on-close: on', so regular
> expressions need to be optimized
>
> Signed-off-by: Jiale Song <songx.jiale@intel.com>
Applied.
Btw, please don't add "PATH" in subject. The version is enough.
old mode 100755
new mode 100644
@@ -900,7 +900,7 @@ class Crb(object):
'''
check_flag = "ethtool --show-priv-flags %s" % intf
out = self.send_expect(check_flag, "# ", timeout)
- p = re.compile('%s\s+:\s+(\w+)' % flag)
+ p = re.compile('%s\s*:\s+(\w+)' % flag)
state = re.search(p, out)
if state:
return state.group(1)