From a2b1b14d365c781bdffe77181488f0a638c4da4c Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 1 Aug 2023 15:03:07 +0200 Subject: [PATCH] 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 Signed-off-by: Rouven Czerwinski --- labgrid/driver/sshdriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labgrid/driver/sshdriver.py b/labgrid/driver/sshdriver.py index 6825d5cbe..ac957cf6b 100644 --- a/labgrid/driver/sshdriver.py +++ b/labgrid/driver/sshdriver.py @@ -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 ]