Skip to content

Commit 9d468f5

Browse files
authored
Merge pull request #1347 from Bastian-Krause/bst/ssh-stdin
driver/sshdriver: redirect /dev/null to stdin in run()
2 parents a3c068f + 1dbd699 commit 9d468f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/sshdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
214214
stderr_pipe = subprocess.PIPE
215215
try:
216216
sub = subprocess.Popen(
217-
complete_cmd, stdout=subprocess.PIPE, stderr=stderr_pipe
217+
complete_cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=stderr_pipe
218218
)
219219
except:
220220
raise ExecutionError(

0 commit comments

Comments
 (0)