From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0525636E for ; Mon, 19 Dec 2016 04:25:02 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 18 Dec 2016 19:25:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,372,1477983600"; d="scan'208";a="913799796" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 18 Dec 2016 19:25:01 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 19:25:01 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 18 Dec 2016 19:25:01 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.11]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.97]) with mapi id 14.03.0248.002; Mon, 19 Dec 2016 11:24:59 +0800 From: "Liu, Yong" To: "Yao, Lei A" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] framework ssh_pexpect: add timeout to avoid file uncomplete during scp file from host to VM Thread-Index: AQHSV2kXVBGqOensEEmnsnNmb4kZh6EOlhqQ//+BWgCAAIc54A== Date: Mon, 19 Dec 2016 03:24:58 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D1A564@SHSMSX103.ccr.corp.intel.com> References: <1481871227-4334-1-git-send-email-lei.a.yao@intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E62D1A457@SHSMSX103.ccr.corp.intel.com> <2DBBFF226F7CF64BAFCA79B681719D953A134F28@shsmsx102.ccr.corp.intel.com> In-Reply-To: <2DBBFF226F7CF64BAFCA79B681719D953A134F28@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWIwYzg2MzItNzE0MC00MzAwLWI1ZjMtMmM2ODk5OWQ2MDNmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJVbVArZTNKWE9CZTAyWEZwcWZHbHJqcXJmcEhyWlJTWUVOVzFlV1MrN0k9In0= 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 03:25:03 -0000 > > > 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. > This timeout is used before sending the ssh cmd. Not waiting time. During > virtualization test, we find the file will always be corrupted when scp > dpdk.tar.gz from host to vm. Wait 10s after ssh connection set up , then > send scp cmd will resolve this failure. The sleep command is after "password" message, so I think connection betwee= n VM and host machine has been created and worked. What I wonder is that why file is corrupted after "100%" hint. Either expec= t worked abnormally or some issues we haven't figured out. Thanks, Marvin