summary refs log tree commit diff stats
path: root/tests/functional/test_virtio_gpu.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-12-17 15:59:32 +0000
committerThomas Huth <thuth@redhat.com>2024-12-17 19:39:53 +0100
commitbcc12768c242a4862a1725e22371dd87af1c2b7e (patch)
treed7def83a641ff08b9c1900b9dca2b30913e96b39 /tests/functional/test_virtio_gpu.py
parentf84f8e71eb4bdd193e89c6550a015277b686b0af (diff)
downloadfocaccia-qemu-bcc12768c242a4862a1725e22371dd87af1c2b7e.tar.gz
focaccia-qemu-bcc12768c242a4862a1725e22371dd87af1c2b7e.zip
tests/functional: switch over to using self.log_file(...)
This removes direct access of the 'self.logdir' variable.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20241217155953.3950506-12-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_virtio_gpu.py')
-rwxr-xr-xtests/functional/test_virtio_gpu.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/functional/test_virtio_gpu.py b/tests/functional/test_virtio_gpu.py
index 2d298b1f02..7654421e6b 100755
--- a/tests/functional/test_virtio_gpu.py
+++ b/tests/functional/test_virtio_gpu.py
@@ -100,9 +100,7 @@ class VirtioGPUx86(QemuSystemTest):
         os.set_inheritable(qemu_sock.fileno(), True)
         os.set_inheritable(vug_sock.fileno(), True)
 
-        self._vug_log_path = os.path.join(
-            self.logdir, "vhost-user-gpu.log"
-        )
+        self._vug_log_path = self.log_file("vhost-user-gpu.log")
         self._vug_log_file = open(self._vug_log_path, "wb")
         self.log.info('Complete vhost-user-gpu.log file can be '
                       'found at %s', self._vug_log_path)