From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id AB7845694 for ; Wed, 13 May 2015 07:49:16 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 12 May 2015 22:49:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,419,1427785200"; d="scan'208";a="709387768" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 12 May 2015 22:49:14 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4D5nDBQ015701; Wed, 13 May 2015 13:49:13 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4D5nAXc019998; Wed, 13 May 2015 13:49:12 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4D5nAk4019994; Wed, 13 May 2015 13:49:10 +0800 From: Yong Liu To: dts@dpdk.org Date: Wed, 13 May 2015 13:49:05 +0800 Message-Id: <1431496146-19962-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH 1/2] framework: add exception for closed session 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: Wed, 13 May 2015 05:49:17 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/exception.py b/framework/exception.py index be38c16..17bfccf 100644 --- a/framework/exception.py +++ b/framework/exception.py @@ -46,3 +46,17 @@ class SSHConnectionException(Exception): def __str__(self): return 'Error trying to connect with %s' % self.host + + +class SSHSessionDeadException(Exception): + + """ + SSH session is not alive. + It can no longer be used. + """ + + def __init__(self, host): + self.host = host + + def __str__(self): + return 'SSH session with %s has been dead' % self.host -- 1.9.3