test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] framework/crb: optimization code
@ 2019-11-06 23:34 lihong
  2019-11-22  6:17 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [dts] [PATCH V1] framework/crb: optimization code
  2019-11-06 23:34 [dts] [PATCH V1] framework/crb: optimization code lihong
@ 2019-11-22  6:17 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-11-22  6:17 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Thursday, November 7, 2019 7:35 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] framework/crb: optimization code
> 
> 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] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (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
2019-11-22  6:17 ` Tu, Lijuan

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