diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2025-09-12 19:22:00 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-09-24 08:26:11 +0200 |
| commit | 8a44d8c2ac0921c8064fbfd00ef28e3a2588918e (patch) | |
| tree | 11606441f1ddffeaad0a6385070077930e21f796 /tests/functional/mips64el/test_malta.py | |
| parent | 5383ccf2512f4dc48e6321545f0f946d6bc78aa1 (diff) | |
| download | focaccia-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/mips64el/test_malta.py')
| -rwxr-xr-x | tests/functional/mips64el/test_malta.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/functional/mips64el/test_malta.py b/tests/functional/mips64el/test_malta.py index 8fdc49b300..170147bfcc 100755 --- a/tests/functional/mips64el/test_malta.py +++ b/tests/functional/mips64el/test_malta.py @@ -159,7 +159,6 @@ class MaltaMachineFramebuffer(LinuxKernelTest): command_line='screendump %s' % screendump_path) if 'unknown command' in res: self.skipTest('screendump not available') - logger = logging.getLogger('framebuffer') match_threshold = 0.95 screendump_bgr = cv2.imread(screendump_path, cv2.IMREAD_COLOR) @@ -171,7 +170,7 @@ class MaltaMachineFramebuffer(LinuxKernelTest): h, w = tuxlogo_bgr.shape[:2] debug_png = os.getenv('QEMU_TEST_CV2_SCREENDUMP_PNG_PATH') for tuxlogo_count, pt in enumerate(zip(*loc[::-1]), start=1): - logger.debug('found Tux at position (x, y) = %s', pt) + self.log.debug('found Tux at position (x, y) = %s', pt) cv2.rectangle(screendump_bgr, pt, (pt[0] + w, pt[1] + h), (0, 0, 255), 2) if debug_png: |