Skip to content

Commit

Permalink
sshdriver: reduce loglevel when running commands
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Emantor committed Aug 1, 2023
1 parent f66abbb commit a2b1b14
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 @@ -233,7 +233,7 @@ def _run(self, cmd, codec="utf-8", decodeerrors="strict", timeout=None):
if not self._check_keepalive():
raise ExecutionError("Keepalive no longer running")

complete_cmd = ["ssh", "-x", *self.ssh_prefix,
complete_cmd = ["ssh", "-x", "-o", "LogLevel=QUIET", *self.ssh_prefix,
"-p", str(self.networkservice.port), "-l", self.networkservice.username,
self.networkservice.address
]
Expand Down

0 comments on commit a2b1b14

Please sign in to comment.