[dts] [PATCH 2/2] framework: replace unnecessary send_command with send_expect
xinfengx
xinfengx.zhao at intel.com
Sun Mar 8 16:23:09 CET 2020
Signed-off-by: xinfengx <xinfengx.zhao at 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
More information about the dts
mailing list