From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6FF602B9F for ; Mon, 19 Dec 2016 03:50:25 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP; 18 Dec 2016 18:50:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,372,1477983600"; d="scan'208";a="44490547" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 18 Dec 2016 18:50:23 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 18:50:23 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 18:50:23 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.11]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.9]) with mapi id 14.03.0248.002; Mon, 19 Dec 2016 10:50:22 +0800 From: "Liu, Yong" To: "Yao, Lei A" , "dts@dpdk.org" CC: "Yao, Lei A" Thread-Topic: [dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid file uncomplete during scp file from host to VM Thread-Index: AQHSV2kXVBGqOensEEmnsnNmb4kZh6EOlhqQ Date: Mon, 19 Dec 2016 02:50:22 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D1A457@SHSMSX103.ccr.corp.intel.com> References: <1481871227-4334-1-git-send-email-lei.a.yao@intel.com> In-Reply-To: <1481871227-4334-1-git-send-email-lei.a.yao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTRkNzY5MzAtMDhjYS00MGVkLTliMDEtMDExZDBjN2U1NDZiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjlFWFhzbWFGeUwxVEc4T0JVK2VMYnIwQWVZK2NYQzFFT29OT3lncXRjXC9jPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid file uncomplete during scp file from host to VM X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 02:50:25 -0000 Hi Lei, One question for why added the dealy. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yao Lei > Sent: Friday, December 16, 2016 2:54 PM > To: dts@dpdk.org > Cc: Yao, Lei A > Subject: [dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid fil= e > uncomplete during scp file from host to VM >=20 > From: lei yao >=20 > Signed-off-by: lei yao > --- > framework/ssh_pexpect.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D=3D 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 =3D=3D 4: > self.logger.error("SCP TIMEOUT error %d" % i) > -- > 2.7.4