提交 b79421d3 编写于 作者: L Lukáš Doktor

Merge pull request #1132 from apahim/fabric_abort_on_prompt_v3

avocado.core.remoter remote actions should fail on prompt [v3]
......@@ -36,6 +36,14 @@ else:
REMOTE_CAPABLE = True
class RemoterError(Exception):
pass
class ConnectionError(RemoterError):
pass
class Remote(object):
"""
......@@ -68,7 +76,9 @@ class Remote(object):
port=port,
timeout=timeout / attempts,
connection_attempts=attempts,
linewise=True)
linewise=True,
abort_on_prompts=True,
abort_exception=ConnectionError)
@staticmethod
def _setup_environment(**kwargs):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册