From 3f63a914792c8231b9f433c4a2cfd371eca82c28 Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Tue, 20 Jun 2023 17:44:43 +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. --- 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 f61b962c5..a0633fc65 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 ]