]> xenbits.xensource.com Git - libvirt.git/commit
virschematest: Improve detection of 'invalid' XMLs
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Aug 2023 12:20:58 +0000 (14:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Aug 2023 12:04:41 +0000 (14:04 +0200)
commitc2dfc3b8636528da8a0aad4a97b4964d20830335
treea45a4b74dbf464f028c6a238ec32af5b6575f9d5
parent72a6c2ad9fd22b41de904e2c8eb8988c649b0e1d
virschematest: Improve detection of 'invalid' XMLs

The output files from 'qemuxml2argvtest' may have the real capability
suffix e.g. 'pci-rom-disabled-invalid.x86_64-latest.xml' which would not
be detected as being invalid and thus causing a test failure.

Change the logic to find '-invalid.' so that we can properly use
'virschematest' with test cases using real capabilities.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virschematest.c