[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] tests/avocado: move guest output to "avocado" namespace
From: |
Alex Bennée |
Subject: |
[PATCH 6/8] tests/avocado: move guest output to "avocado" namespace |
Date: |
Thu, 18 May 2023 17:20:32 +0100 |
It has been noted that console logs have disappeared since the update
to the latest avocado. This seems to fix it.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/avocado/avocado_qemu/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/avocado/avocado_qemu/__init__.py
b/tests/avocado/avocado_qemu/__init__.py
index 33090903f1..b19f797b7b 100644
--- a/tests/avocado/avocado_qemu/__init__.py
+++ b/tests/avocado/avocado_qemu/__init__.py
@@ -138,7 +138,7 @@ def _console_interaction(test, success_message,
failure_message,
if vm is None:
vm = test.vm
console = vm.console_socket.makefile(mode='rb', encoding='utf-8')
- console_logger = logging.getLogger('console')
+ console_logger = logging.getLogger('avocado.guest.console')
while True:
if send_string:
vm.console_socket.sendall(send_string.encode())
@@ -407,7 +407,7 @@ class LinuxSSHMixIn:
"""Contains utility methods for interacting with a guest via SSH."""
def ssh_connect(self, username, credential, credential_is_key=True):
- self.ssh_logger = logging.getLogger('ssh')
+ self.ssh_logger = logging.getLogger('avocado.guest.ssh')
res = self.vm.command('human-monitor-command',
command_line='info usernet')
port = get_info_usernet_hostfwd_port(res)
--
2.39.2
- [PATCH 0/8] testing/next: avocado logging, docs, gitlab, Alex Bennée, 2023/05/18
- [PATCH 6/8] tests/avocado: move guest output to "avocado" namespace,
Alex Bennée <=
- [PATCH 5/8] tests/tcg: add mechanism to handle plugin arguments, Alex Bennée, 2023/05/18
- [PATCH 1/8] gitlab: explicit set artifacts publishing criteria, Alex Bennée, 2023/05/18
- [PATCH 2/8] gitlab: ensure coverage job also publishes meson log, Alex Bennée, 2023/05/18