[dts] [PATCH V1] framework/crb: optimization code
Tu, Lijuan
lijuan.tu at intel.com
Fri Nov 22 07:17:18 CET 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Thursday, November 7, 2019 7:35 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] framework/crb: optimization code
>
> 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