From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4C6515AA1 for ; Sun, 26 Jun 2016 19:55:16 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 26 Jun 2016 10:55:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,532,1459839600"; d="scan'208";a="835526833" Received: from imail001.iil.intel.com ([10.184.207.12]) by orsmga003.jf.intel.com with ESMTP; 26 Jun 2016 10:55:14 -0700 Received: from cghost.iil.intel.com (cghost.iil.intel.com [143.185.141.60]) by imail001.iil.intel.com with ESMTP id u5QHtB0j002329; Sun, 26 Jun 2016 20:55:11 +0300 From: Rami Rosen To: yong.liu@intel.com Cc: dts@dpdk.org, Rami Rosen Date: Sun, 26 Jun 2016 20:58:22 +0300 Message-Id: <1466963902-23114-1-git-send-email-rami.rosen@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] framework: avoid error on import pxssh. 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: Sun, 26 Jun 2016 17:55:16 -0000 This patch adds "from pexpect" to the "import pxsh" call. In newer versions (higher than 4) of python-pexpect, not having "from expect" will cause the following error: "ImportError: No module named pxssh". See also: https://github.com/pexpect/pexpect/issues/302 Signed-off-by: Rami Rosen --- framework/ssh_pexpect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py index 96c4409..f0348b6 100644 --- a/framework/ssh_pexpect.py +++ b/framework/ssh_pexpect.py @@ -1,6 +1,6 @@ import time import pexpect -import pxssh +from pexpect import pxssh from debugger import ignore_keyintr, aware_keyintr from exception import TimeoutException, SSHConnectionException, SSHSessionDeadException from utils import RED, GREEN -- 2.7.4