mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virDomainXMLOption: Introduce virDomainABIStabilityDomain
While checking for ABI stability, drivers might pose additional checks that are not valid for general case. For instance, qemu driver might check some memory backing attributes because of how qemu works. But those attributes may work well in other drivers. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -1136,7 +1136,7 @@ virDomainXMLOptionPtr virTestGenericDomainXMLConfInit(void)
|
||||
{
|
||||
return virDomainXMLOptionNew(&virTestGenericDomainDefParserConfig,
|
||||
&virTestGenericPrivateDataCallbacks,
|
||||
NULL);
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -1169,7 +1169,7 @@ testCompareDomXML2XMLFiles(virCapsPtr caps, virDomainXMLOptionPtr xmlopt,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!virDomainDefCheckABIStability(def, def)) {
|
||||
if (!virDomainDefCheckABIStability(def, def, xmlopt)) {
|
||||
VIR_TEST_DEBUG("ABI stability check failed on %s", infile);
|
||||
result = TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_STABILITY;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user