aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/qemu_test
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-11-21 16:57:37 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-11-25 10:06:20 +0000
commit9f85aff93f5dcedb70819a5ed7796b6df90fdf2d (patch)
treed24a583baaaebe1065be607da10de43f9194b36d /tests/functional/qemu_test
parente6d69e0f3b83b7c60d024f41f5eaf130755b090c (diff)
tests/functional: honour requested test VM name in QEMUMachine
The functional test case class is going to the trouble of passing around a machine name, but then fails to give this QEMUMachine. As a result, QEMUMachine will create a completely random name. Since log file names match the machine name, this results in log files accumulating over time. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20241121154218.1423005-11-berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20241121165806.476008-11-alex.bennee@linaro.org>
Diffstat (limited to 'tests/functional/qemu_test')
-rw-r--r--tests/functional/qemu_test/testcase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu_test/testcase.py
index ca13af244b..f9c9de1166 100644
--- a/tests/functional/qemu_test/testcase.py
+++ b/tests/functional/qemu_test/testcase.py
@@ -164,6 +164,7 @@ class QemuSystemTest(QemuBaseTest):
def _new_vm(self, name, *args):
vm = QEMUMachine(self.qemu_bin,
+ name=name,
base_temp_dir=self.workdir,
log_dir=self.logdir)
self.log.debug('QEMUMachine "%s" created', name)