Skip to content

Commit 8fd094b

Browse files
committed
sshdriver: Fix timeout for run()
The run() function was not passing its timeout parameter on to the internal _run() function; therefore, any timeout set by a caller was ignored. Signed-off-by: Nick Potenski <[email protected]>
1 parent 79d1dff commit 8fd094b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labgrid/driver/sshdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def _start_own_master_once(self, timeout):
166166

167167
@Driver.check_active
168168
@step(args=['cmd'], result=True)
169-
def run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None): # pylint: disable=unused-argument
170-
return self._run(cmd, codec=codec, decodeerrors=decodeerrors)
169+
def run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
170+
return self._run(cmd, codec=codec, decodeerrors=decodeerrors, timeout=timeout)
171171

172172
def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None): # pylint: disable=unused-argument
173173
"""Execute `cmd` on the target.

0 commit comments

Comments
 (0)