Skip to content

Commit

Permalink
Merge pull request #1347 from Bastian-Krause/bst/ssh-stdin
Browse files Browse the repository at this point in the history
driver/sshdriver: redirect /dev/null to stdin in run()
  • Loading branch information
Emantor authored Apr 3, 2024
2 parents a3c068f + 1dbd699 commit 9d468f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labgrid/driver/sshdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
stderr_pipe = subprocess.PIPE
try:
sub = subprocess.Popen(
complete_cmd, stdout=subprocess.PIPE, stderr=stderr_pipe
complete_cmd, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=stderr_pipe
)
except:
raise ExecutionError(
Expand Down

0 comments on commit 9d468f5

Please sign in to comment.