[dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid file uncomplete during scp file from host to VM
Liu, Yong
yong.liu at intel.com
Mon Dec 19 03:50:22 CET 2016
Hi Lei,
One question for why added the dealy.
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Yao Lei
> Sent: Friday, December 16, 2016 2:54 PM
> To: dts at dpdk.org
> Cc: Yao, Lei A
> Subject: [dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid file
> uncomplete during scp file from host to VM
>
> From: lei yao <lei.a.yao at intel.com>
>
> Signed-off-by: lei yao <lei.a.yao at intel.com>
> ---
> framework/ssh_pexpect.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py
> index d5b6616..09095a1 100644
> --- a/framework/ssh_pexpect.py
> +++ b/framework/ssh_pexpect.py
> @@ -185,6 +185,7 @@ class SSHPexpect(object):
> if i == 1:
> time.sleep(0.5)
> p.sendline(password)
> + time.sleep(10)
> p.expect("100%", 60)
Expect function has been already wait for about one minute, look like there's no need to add more time.
> if i == 4:
> self.logger.error("SCP TIMEOUT error %d" % i)
> --
> 2.7.4
More information about the dts
mailing list