未验证 提交 35339db2 编写于 作者: C Caio Carrara

Merge remote-tracking branch 'clebergnu/ssh_control_path'

Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
......@@ -8,7 +8,8 @@ class Session(object):
"""
DEFAULT_OPTIONS = (('StrictHostKeyChecking', 'no'),
('UpdateHostKeys', 'no'))
('UpdateHostKeys', 'no'),
('ControlPath', '~/.ssh/avocado-master-%r@%h:%p'))
MASTER_OPTIONS = (('ControlMaster', 'yes'),
('ControlPersist', 'yes'))
......@@ -76,7 +77,7 @@ class Session(object):
if not master.exit_status == 0:
return False
self._connection = master
return True
return self._check()
def cmd(self, command):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册