From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 58292377C for ; Fri, 16 Dec 2016 07:52:41 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 15 Dec 2016 22:52:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,356,1477983600"; d="scan'208";a="1099896722" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 15 Dec 2016 22:52:40 -0800 From: Yao Lei To: dts@dpdk.org Cc: lei yao Date: Fri, 16 Dec 2016 14:53:47 +0800 Message-Id: <1481871227-4334-1-git-send-email-lei.a.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Fri, 16 Dec 2016 06:52:42 -0000 From: lei yao Signed-off-by: lei yao --- 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) if i == 4: self.logger.error("SCP TIMEOUT error %d" % i) -- 2.7.4