[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/46] tests/acceptance/virtio_check_params: List machine being te
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 20/46] tests/acceptance/virtio_check_params: List machine being tested |
Date: |
Thu, 6 Feb 2020 22:19:10 +0100 |
Add logging for easier debugging of failures:
$ avocado --show=machine run tests/acceptance/virtio_check_params.py
(1/1)
tests/acceptance/virtio_check_params.py:VirtioMaxSegSettingsCheck.test_machine_types:
machine: {'name': 'pc-i440fx-2.12', 'seg_max_adjust': 'false', 'device':
'virtio-scsi-pci'}
machine: {'name': 'pc-i440fx-2.0', 'seg_max_adjust': 'false', 'device':
'virtio-scsi-pci'}
machine: {'name': 'pc-q35-4.2', 'seg_max_adjust': 'false', 'device':
'virtio-scsi-pci'}
machine: {'name': 'pc-i440fx-2.5', 'seg_max_adjust': 'false', 'device':
'virtio-scsi-pci'}
machine: {'name': 'pc-i440fx-4.2', 'seg_max_adjust': 'false', 'device':
'virtio-scsi-pci'}
...
Reviewed-by: Cornelia Huck <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/acceptance/virtio_check_params.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/acceptance/virtio_check_params.py
b/tests/acceptance/virtio_check_params.py
index 270f69d092..29e91bfa37 100755
--- a/tests/acceptance/virtio_check_params.py
+++ b/tests/acceptance/virtio_check_params.py
@@ -21,6 +21,7 @@
import sys
import os
import re
+import logging
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
from qemu.machine import QEMUMachine
@@ -73,6 +74,9 @@ class VirtioMaxSegSettingsCheck(Test):
return query_ok, props, error
def check_mt(self, mt, dev_type_name):
+ mt['device'] = dev_type_name # Only for the debug() call.
+ logger = logging.getLogger('machine')
+ logger.debug(mt)
with QEMUMachine(self.qemu_bin) as vm:
vm.set_machine(mt["name"])
for s in VM_DEV_PARAMS[dev_type_name]:
--
2.21.1
- [PULL 09/46] python/qemu/machine: Allow to use other serial consoles than default, (continued)
- [PULL 09/46] python/qemu/machine: Allow to use other serial consoles than default, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 10/46] Acceptance tests: Extract _console_interaction(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 11/46] Acceptance tests: Add interrupt_interactive_console_until_pattern(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 12/46] travis.yml: install rpm2cpio for acceptance tests, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 13/46] tests/boot_linux_console: add extract_from_rpm method, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 14/46] tests/boot_linux_console: use os.path for filesystem paths, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 15/46] tests/boot_linux_console: fix extract_from_deb() comment, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 16/46] tests/boot_linux_console: Tag Emcraft Smartfusion2 as running 'u-boot', Philippe Mathieu-Daudé, 2020/02/06
- [PULL 18/46] tests: rename virtio_seg_max_adjust to virtio_check_params, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 17/46] tests/acceptance: Add boot tests for some of the QEMU advent calendar images, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 20/46] tests/acceptance/virtio_check_params: List machine being tested,
Philippe Mathieu-Daudé <=
- [PULL 24/46] tests/acceptance/version: Default to -nodefaults, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 23/46] tests/acceptance/boot_linux_console: Do not use VGA on Clipper machine, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 21/46] tests/acceptance/virtio_check_params: Default to -nodefaults, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 19/46] tests/acceptance/virtio_check_params: Improve exception logging, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 22/46] tests/acceptance/virtio_check_params: Disable the test, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 25/46] tests/acceptance/migration: Factor out assert_migration(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 27/46] tests/acceptance/migration: Test UNIX transport when migrating, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 26/46] tests/acceptance/migration: Factor out do_migrate(), Philippe Mathieu-Daudé, 2020/02/06
- [PULL 28/46] tests/acceptance/migration: Test EXEC transport when migrating, Philippe Mathieu-Daudé, 2020/02/06
- [PULL 29/46] tests/acceptance/migration: Add the 'migration' tag, Philippe Mathieu-Daudé, 2020/02/06