[dts] [PATCH V1] framework/crb: optimization code
lihong
lihongx.ma at intel.com
Thu Nov 7 00:34:38 CET 2019
Signed-off-by: lihong <lihongx.ma at intel.com>
---
framework/crb.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/framework/crb.py b/framework/crb.py
index 91f2946..c1f2a1c 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -517,8 +517,7 @@ class Crb(object):
self.prefix_list = []
else:
self.logger.info('kill_all: called by dut and has no prefix list.')
- session = self.create_session('dut_session')
- out = session.send_command("ls -l /var/run/dpdk |awk '/^d/ {print $NF}'", timeout=0.5)
+ out = self.send_command("ls -l /var/run/dpdk |awk '/^d/ {print $NF}'", timeout=0.5, alt_session=True)
# the last directory is expect string, eg: [PEXPECT]#
if out != '':
dir_list = out.split('\r\n')
--
2.7.4
More information about the dts
mailing list