From: xinfengx <xinfengx.zhao@intel.com>
To: dts@dpdk.org
Cc: xinfengx <xinfengx.zhao@intel.com>
Subject: [dts] [PATCH 2/2] framework: replace unnecessary send_command with send_expect
Date: Sun, 8 Mar 2020 23:23:09 +0800 [thread overview]
Message-ID: <20200308152309.46637-2-xinfengx.zhao@intel.com> (raw)
In-Reply-To: <20200308152309.46637-1-xinfengx.zhao@intel.com>
Signed-off-by: xinfengx <xinfengx.zhao@intel.com>
---
framework/project_dpdk.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 4c57e81..9ac3b1a 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -451,8 +451,8 @@ class DPDKdut(Dut):
"""
Get RTE configuration from config/defconfig_*.
"""
- out = self.session.send_command("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'"
- % self.target, 1)
+ out = self.send_expect("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'"
+ % self.target, "# ")
def_rte_config = re.findall(config+'=(\S+)', out)
if def_rte_config:
--
2.17.1
next prev parent reply other threads:[~2020-03-09 0:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-08 15:23 [dts] [PATCH 1/2] framework: modify the method get_session_before xinfengx
2020-03-08 15:23 ` xinfengx [this message]
2020-03-11 7:36 ` [dts] [PATCH 2/2] framework: replace unnecessary send_command with send_expect Zhao, XinfengX
2020-03-20 5:07 ` [dts] [PATCH 1/2] framework: modify the method get_session_before Xiao, QimaiX
2020-03-20 8: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=20200308152309.46637-2-xinfengx.zhao@intel.com \
--to=xinfengx.zhao@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).