mirror of https://gitee.com/openkylin/libvirt.git
qemuxml2argvtest: Test expected error messages
When an error is expected, the error message will be checked. This is expressed by creating an additional ".err" file containing the expected error message. It is added in order to make sure the expected errors are not masked by other errors during test execution while leveraging the existing framework. In order to keep it simple, an input file cannot be reused anymore to cover several expected error cases configured in the test code. An input file can still be reused by creating a test case specific symlink. For consistency, the mock needs to report an error now, too, as every failure must have an error; otherwise a test case will fail. Require LC_ALL=C explicitly to make sure error messages are not localized for testing. Signed-off-by: Sebastian Mitterle <smitterl@redhat.com> Suggested-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
afe26f76f2
commit
9ec77eef2d
|
@ -0,0 +1 @@
|
|||
XML error: Attempted double use of PCI Address 0000:00:01.1
|
|
@ -0,0 +1 @@
|
|||
XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: ACPI requires UEFI on this architecture
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: SVE disabled, but SVE vector lengths provided
|
|
@ -0,0 +1 @@
|
|||
internal error: CPU features not supported by hypervisor for aarch64 architecture
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: unknown CPU feature: vmx
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: gic-version option is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
XML error: malformed gic version: none
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: The 'gic' feature is not supported for architecture 'ppc64' or machine type 'pseries'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: The 'gic' feature is not supported for architecture 'aarch64' or machine type 'versatilepb'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: gic-version option is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: per-device boot elements cannot be used together with os/boot elements
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: invalid value for boot menu timeout, must be in range [0,65535]
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: splash timeout is not supported by this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
internal error: chardev reconnect is possible only for connect mode
|
|
@ -0,0 +1 @@
|
|||
invalid argument: chardev reconnect source timeout cannot be '0'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: CPU cache mode 'emulate' can only be used with level='3'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: unsupported CPU cache level for mode 'passthrough'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: CPU cache mode 'passthrough' can only be used with 'host-passthrough' CPUs
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: CPU model core2duo is not supported by hypervisor
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: vCPUs count must be a multiple of the vCPU hotplug granularity (4)
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: CPU model Westmere is not supported by hypervisor
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: disjoint NUMA cpu ranges are not supported with this QEMU
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Shared memory mapping is not supported with this QEMU
|
|
@ -0,0 +1 @@
|
|||
cpu-numa-memshared.xml
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: this qemu doesn't support the memory-backend-file object
|
|
@ -0,0 +1 @@
|
|||
XML error: Exactly one 'cell' element per guest NUMA cell allowed, non-contiguous ranges or ranges not starting from 0 are not allowed
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor
|
|
@ -0,0 +1 @@
|
|||
internal error: CPU features not supported by hypervisor for s390x architecture
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Cannot find 'iothread' : 2
|
|
@ -0,0 +1 @@
|
|||
'vcpusched' attributes 'vcpus' must not overlap
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: domain configuration does not support 'video model' value 'default'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: invalid disk target 'vdb1', partitions can't appear in disk targets
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: disk device='lun' is only valid for block type disk source
|
|
@ -0,0 +1 @@
|
|||
internal error: unexpected address type for fdc disk
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: PowerPC pseries machines do not support floppy device
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: 'cow' storage format is not supported
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: storage format 'iso' is not directly supported by QEMU, use 'raw' instead
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: using disk target name 'sda' conflicts with SCSI host device address controller='0' bus='0' target='0' unit='0
|
|
@ -0,0 +1 @@
|
|||
internal error: unexpected address type for ide disk
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: unknown secret type '<null>'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: invalid secret type 'ceph'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: ':' not allowed in RBD source volume name 'imagename:rbd_cache=1:rbd_cache_size=67108864:rbd_cache_max_dirty=0'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: an <auth> definition already found for disk source
|
|
@ -0,0 +1 @@
|
|||
XML error: target 'sda' duplicated for disk sources '/tmp/idedisk.img' and '/tmp/usbdisk.img'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Invalid address type 'pci' for the disk 'sda' with the bus type 'sata'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Only scsi disk supports vendor and product
|
|
@ -0,0 +1 @@
|
|||
internal error: unexpected address type for scsi disk
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: shared access for disk 'hda' requires use of supported storage format
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: This QEMU doesn't support '-device usb-storage'
|
|
@ -0,0 +1 @@
|
|||
internal error: unexpected address type for usb disk
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: graphics type 'egl-headless' is only supported with one of: 'vnc', 'spice' graphics types
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: multiple OpenGL displays are not supported by QEMU
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: graphics device is needed for attribute value 'display=on' in <hostdev>
|
|
@ -0,0 +1 @@
|
|||
XML error: Unsupported address type 'drive' with mediated device model 'vfio-pci'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Missing 'uuid' attribute for element <address>
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: booting from assigned devices is not supported by vhost SCSI devices
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: booting from assigned devices is not supported by mediated devices of model vfio-ap
|
|
@ -0,0 +1 @@
|
|||
XML error: The CCW devno 'fe.0.0001' is in use already
|
|
@ -0,0 +1 @@
|
|||
XML error: Unsupported address type 'pci' with mediated device model 'vfio-ccw'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: VFIO CCW device assignment is not supported by this version of QEMU
|
|
@ -0,0 +1 @@
|
|||
XML error: No PCI buses available
|
|
@ -0,0 +1 @@
|
|||
internal error: zPCI uid 11064 is already reserved
|
|
@ -0,0 +1 @@
|
|||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
|
@ -0,0 +1 @@
|
|||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
|
@ -0,0 +1 @@
|
|||
XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: This QEMU binary doesn't support zPCI
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: This QEMU binary doesn't support zPCI
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: SCSI host address controller='0' bus='0' target='0' unit='0' in use by another SCSI host device
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: huge pages per NUMA node are not supported with this QEMU
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Invalid 'memAccess' attribute value 'invalid'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: memory access mode 'shared' not supported without guest numa node
|
|
@ -0,0 +1 @@
|
|||
hugepages: node 1 not found
|
|
@ -0,0 +1 @@
|
|||
hugepages: node 4 not found
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: IOMMU device: 'intel' is only supported with Q35 machines
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: IOThreads not supported for this QEMU
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: supplying <cipher> for domain disk definition is unnecessary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: an <encryption> definition already found for disk source
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: LUKS encrypted QCOW2 images are not supported by this QEMU
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Serial device with target type 'system-serial' and target model 'pl011' not compatible with guest architecture or machine type
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: aes-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: dea-key-wrap is not available with this QEMU binary
|
|
@ -0,0 +1 @@
|
|||
internal error: invalid loadparm char '?', expecting chars in set of [a-zA-Z0-9.] and blank spaces
|
|
@ -0,0 +1 @@
|
|||
internal error: loadparm 'LOADPARM1' exceeds 8 characters
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: memory size of NUMA node '0' overflowed after alignment
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: At least one numa node has to be configured when enabling memory hotplug
|
|
@ -0,0 +1 @@
|
|||
XML error: Memory size must be specified via <memory> or in the <numa> configuration
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: setting ACPI S4 not supported
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: Emulator '/usr/bin/qemu-system-i386' does not support arch 'alpha'
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: interface 00:11:22:33:44:55 - custom tap device path is not supported for network interfaces of type hostdev
|
|
@ -0,0 +1 @@
|
|||
unsupported configuration: interface 52:54:00:ee:96:6b - custom tap device path is not supported for network interfaces of type vhostuser
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue