Skip to content

Commit a2b1b14

Browse files
committed
sshdriver: reduce loglevel when running commands
This avoids potential SSH log messages from ending up in the command output, especially when using stderr_merge. Signed-off-by: Jan Luebbe <[email protected]> Signed-off-by: Rouven Czerwinski <[email protected]>
1 parent f66abbb commit a2b1b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/sshdriver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
233233
if not self._check_keepalive():
234234
raise ExecutionError("Keepalive no longer running")
235235

236-
complete_cmd = ["ssh", "-x", *self.ssh_prefix,
236+
complete_cmd = ["ssh", "-x", "-o", "LogLevel=QUIET", *self.ssh_prefix,
237237
"-p", str(self.networkservice.port), "-l", self.networkservice.username,
238238
self.networkservice.address
239239
]

0 commit comments

Comments
 (0)