summary refs log tree commit diff stats
path: root/tests/functional/aarch64/test_virt.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-09-12 19:22:00 +0100
committerThomas Huth <thuth@redhat.com>2025-09-24 08:26:11 +0200
commit8a44d8c2ac0921c8064fbfd00ef28e3a2588918e (patch)
tree11606441f1ddffeaad0a6385070077930e21f796 /tests/functional/aarch64/test_virt.py
parent5383ccf2512f4dc48e6321545f0f946d6bc78aa1 (diff)
downloadfocaccia-qemu-8a44d8c2ac0921c8064fbfd00ef28e3a2588918e.tar.gz
focaccia-qemu-8a44d8c2ac0921c8064fbfd00ef28e3a2588918e.zip
tests/functional: use self.log for all logging
Some tests are creating their on logger category which means any
output they log is not captured in base.log.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: drop changes to reverse_debugging.py (it's WIP in other patches)]
Message-ID: <20250912182200.643909-7-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/aarch64/test_virt.py')
-rwxr-xr-xtests/functional/aarch64/test_virt.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/functional/aarch64/test_virt.py b/tests/functional/aarch64/test_virt.py
index 4d0ad90ff8..63071f9b51 100755
--- a/tests/functional/aarch64/test_virt.py
+++ b/tests/functional/aarch64/test_virt.py
@@ -72,8 +72,6 @@ class Aarch64VirtMachine(QemuSystemTest):
         self.set_machine('virt')
         self.require_accelerator("tcg")
 
-        logger = logging.getLogger('aarch64_virt')
-
         kernel_path = self.ASSET_KERNEL.fetch()
 
         self.vm.set_console()
@@ -91,7 +89,7 @@ class Aarch64VirtMachine(QemuSystemTest):
                          'rng-random,id=rng0,filename=/dev/urandom')
 
         # Also add a scratch block device
-        logger.info('creating scratch qcow2 image')
+        self.log.info('creating scratch qcow2 image')
         image_path = self.scratch_file('scratch.qcow2')
         qemu_img = get_qemu_img(self)
         check_call([qemu_img, 'create', '-f', 'qcow2', image_path, '8M'],