Skip to content
Permalink
Browse files

driver/shelldriver: fix return None for run_script() and run_script_f…

…ile() routines

Signed-off-by: Yury Kazakevich <yukach@gmail.com>
  • Loading branch information...
yukach authored and jluebbe committed Mar 5, 2019
1 parent 4cced6f commit 4bb46c76f88fd6622037647af4f9974ce187d552
Showing with 2 additions and 2 deletions.
  1. +2 −2 labgrid/driver/shelldriver.py
@@ -498,7 +498,7 @@ def run_script(self, data: bytes, timeout: int = 60):
IOError: if the provided localfile could not be found
ExecutionError: if something else went wrong
"""
self._run_script(data, timeout)
return self._run_script(data, timeout)

@step(title='run_script_file', args=['scriptfile', 'timeout', 'args'])
def _run_script_file(self, scriptfile: str, *args, timeout: int = 60):
@@ -526,4 +526,4 @@ def run_script_file(self, scriptfile: str, *args, timeout: int = 60):
ExecutionError: if something went wrong
IOError: if the provided localfile could not be found
"""
self._run_script_file(scriptfile, *args, timeout=timeout)
return self._run_script_file(scriptfile, *args, timeout=timeout)

0 comments on commit 4bb46c7

Please sign in to comment.
You can’t perform that action at this time.