From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATH V1] framework/crb: optimization script
Date: Fri, 14 Jan 2022 13:38:04 +0000 [thread overview]
Message-ID: <20220114133804.18796-1-songx.jiale@intel.com> (raw)
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
diff --git a/framework/crb.py b/framework/crb.py
old mode 100755
new mode 100644
index bd4f565d..c33edf14
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -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)
--
2.17.1
next reply other threads:[~2022-01-14 5:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-14 13:38 Jiale Song [this message]
2022-01-14 7:23 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220114133804.18796-1-songx.jiale@intel.com \
--to=songx.jiale@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).