SSH has an exit code of 255 and prints out an error message when it reaches a connection timeout. We should catch this and return a sensible exception. Also, bit-shift all exit codes by 8 to match what we're now doing in the client. From: Jeremy Orlow <[email protected]> Signed-off-by: John Admanski <[email protected]> git-svn-id: http://test.kernel.org/svn/autotest/trunk@1170 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/error.py b/client/common_lib/error.py index 2559dd3..c3b5eeb 100644 --- a/client/common_lib/error.py +++ b/client/common_lib/error.py
@@ -66,6 +66,11 @@ pass +class AutoservSSHTimeout(AutoservError): + """SSH experienced a connection timeout""" + pass + + class AutoservRunError(AutoservError): """\ Errors raised by one of the run functions. Should always be