test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] framework/crb: optimization code
@ 2019-11-06 23:34 lihong
  0 siblings, 0 replies; only message in thread
From: lihong @ 2019-11-06 23:34 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 23:34 [dts] [PATCH V1] framework/crb: optimization code lihong

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox