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 60DE92946 for ; Thu, 27 Oct 2016 04:52:48 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 26 Oct 2016 19:52:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,404,1473145200"; d="scan'208";a="1059794897" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 26 Oct 2016 19:52:45 -0700 From: "xu,gang" To: dts@dpdk.org Date: Thu, 27 Oct 2016 10:54:11 +0800 Message-Id: <1477536851-4383-1-git-send-email-gangx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] fix scp error 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: Thu, 27 Oct 2016 02:52:48 -0000 modify the word spelling error Signed-off-by: xu,gang --- framework/ssh_pexpect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py index 9668daf..d5b6616 100644 --- a/framework/ssh_pexpect.py +++ b/framework/ssh_pexpect.py @@ -176,11 +176,11 @@ class SSHPexpect(object): p = pexpect.spawn(scp_cmd) time.sleep(0.5) ssh_newkey = 'Are you sure you want to continue connecting' - i = p.expect([ssh_newkey, '[pP]ssword', "# ", pexpect.EOF, + i = p.expect([ssh_newkey, '[pP]assword', "# ", pexpect.EOF, pexpect.TIMEOUT], 120) if i == 0: # add once in trust list p.sendline('yes') - i = p.expect([ssh_newkey, '[pP]ssword', pexpect.EOF], 2) + i = p.expect([ssh_newkey, '[pP]assword', pexpect.EOF], 2) if i == 1: time.sleep(0.5) -- 1.9.3