aboutsummaryrefslogtreecommitdiff
path: root/tests/acceptance
diff options
context:
space:
mode:
authorCleber Rosa <crosa@redhat.com>2021-02-11 16:55:05 -0500
committerCleber Rosa <crosa@redhat.com>2021-07-13 13:18:50 -0400
commit776b019d9d446c2a24a4dcde352616d496a89b36 (patch)
treed16dc546c806553b0d6c812ec9d350b2deb25c15 /tests/acceptance
parentb1f3b410528177c0a2f86b48bb9fb24422008fb1 (diff)
downloadqemu-776b019d9d446c2a24a4dcde352616d496a89b36.zip
qemu-776b019d9d446c2a24a4dcde352616d496a89b36.tar.gz
qemu-776b019d9d446c2a24a4dcde352616d496a89b36.tar.bz2
Acceptance Tests: log information when creating QEMUMachine
Including its base temporary directory, given that information useful for debugging can be put there. Signed-off-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Message-Id: <20210211220146.2525771-5-crosa@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/avocado_qemu/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py
index 693c226..4ce09de 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -219,10 +219,12 @@ class Test(avocado.Test):
if self.qemu_bin is None:
self.cancel("No QEMU binary defined or found in the build tree")
- def _new_vm(self, *args):
+ def _new_vm(self, name, *args):
self._sd = tempfile.TemporaryDirectory(prefix="avo_qemu_sock_")
vm = QEMUMachine(self.qemu_bin, base_temp_dir=self.workdir,
sock_dir=self._sd.name)
+ self.log.debug('QEMUMachine "%s" created', name)
+ self.log.debug('QEMUMachine "%s" temp_dir: %s', name, vm.temp_dir)
if args:
vm.add_args(*args)
return vm
@@ -235,7 +237,7 @@ class Test(avocado.Test):
if not name:
name = str(uuid.uuid4())
if self._vms.get(name) is None:
- self._vms[name] = self._new_vm(*args)
+ self._vms[name] = self._new_vm(name, *args)
if self.machine is not None:
self._vms[name].set_machine(self.machine)
return self._vms[name]