mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemublocktest: testBackingXMLjsonXML: Drop 'legacy' mode
Legacy mode used to be needed for use with -drive, which was almost completely deleted. We now have qemuxml2argvtest test cases checking a few cases and the rest uses the modern mode only. Thus we don't need to test the legacy mode any more. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
35815b1e75
commit
197fc3723f
@ -61,8 +61,6 @@ testBackingXMLjsonXML(const void *args)
|
||||
g_auto(virBuffer) debug = VIR_BUFFER_INITIALIZER;
|
||||
unsigned int backendpropsflags = QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_TARGET_ONLY;
|
||||
|
||||
if (data->legacy)
|
||||
backendpropsflags |= QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_LEGACY;
|
||||
|
||||
xmlsrc = virStorageSourceNew();
|
||||
xmlsrc->type = data->type;
|
||||
@ -81,7 +79,6 @@ testBackingXMLjsonXML(const void *args)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!data->legacy) {
|
||||
if (testQEMUSchemaValidate(backendprops, data->schemaroot,
|
||||
data->schema, false, &debug) < 0) {
|
||||
g_autofree char *debugmsg = virBufferContentAndReset(&debug);
|
||||
@ -92,7 +89,6 @@ testBackingXMLjsonXML(const void *args)
|
||||
debugprops, NULLSTR(debugmsg));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (virJSONValueObjectAdd(&wrapper, "a:file", &backendprops, NULL) < 0)
|
||||
return -1;
|
||||
@ -1012,11 +1008,6 @@ mymain(void)
|
||||
do { \
|
||||
xmljsonxmldata.type = tpe; \
|
||||
xmljsonxmldata.xml = xmlstr; \
|
||||
xmljsonxmldata.legacy = true; \
|
||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||
&xmljsonxmldata) < 0) \
|
||||
ret = -1; \
|
||||
xmljsonxmldata.legacy = false; \
|
||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||
&xmljsonxmldata) < 0) \
|
||||
ret = -1; \
|
||||
|
Loading…
Reference in New Issue
Block a user