test suite reviews and discussions
 help / color / mirror / 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, other threads:[~2019-11-22  6:17 UTC | newest]

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

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).