X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fssh.py;h=69428f3af788ebf4652c7410f5ef607659a47bea;hb=0b7647a5a6c85a8a1762ec4482004107989c8550;hp=e6a26ab6b19548819123e6f4af86e0d9c530df1c;hpb=01711acbd1a8b9f5bcf20073f33ad6cc83ede970;p=yardstick.git diff --git a/yardstick/ssh.py b/yardstick/ssh.py index e6a26ab6b..69428f3af 100644 --- a/yardstick/ssh.py +++ b/yardstick/ssh.py @@ -499,9 +499,10 @@ class AutoConnectSSH(SSH): """ Don't close anything, just force creation of a new client """ self._client = False - def execute(self, cmd, stdin=None, timeout=3600): + def execute(self, cmd, stdin=None, timeout=3600, raise_on_error=True): self._connect() - return super(AutoConnectSSH, self).execute(cmd, stdin, timeout) + return super(AutoConnectSSH, self).execute(cmd, stdin, timeout, + raise_on_error) def run(self, cmd, stdin=None, stdout=None, stderr=None, raise_on_error=True, timeout=3600,