mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 04:15:49 +00:00
qemustatusxml2xmltest: Remove capabilities infrastructure
The status XML doesn't require any capabilities to be parsed and formatted back. Remove all qemuCaps related code. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
378d71ef7e
commit
78ae89b856
@ -23,13 +23,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
|
|||||||
g_autofree char *actual = NULL;
|
g_autofree char *actual = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
if (testQemuInfoInitArgs((struct testQemuInfo *) data) < 0)
|
/* this test suite doesn't yet need testQemuInfoInitArgs() */
|
||||||
return -1;
|
|
||||||
|
|
||||||
virFileCacheClear(driver.qemuCapsCache);
|
|
||||||
|
|
||||||
if (qemuTestCapsCacheInsert(driver.qemuCapsCache, data->qemuCaps) < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (!(obj = virDomainObjParseFile(data->infile, driver.xmlopt,
|
if (!(obj = virDomainObjParseFile(data->infile, driver.xmlopt,
|
||||||
VIR_DOMAIN_DEF_PARSE_STATUS |
|
VIR_DOMAIN_DEF_PARSE_STATUS |
|
||||||
@ -76,15 +70,8 @@ static int
|
|||||||
mymain(void)
|
mymain(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
g_autoptr(GHashTable) capslatest = testQemuGetLatestCaps();
|
|
||||||
g_autoptr(GHashTable) capscache = virHashNew(virObjectUnref);
|
|
||||||
g_autoptr(virConnect) conn = NULL;
|
g_autoptr(virConnect) conn = NULL;
|
||||||
struct testQemuConf testConf = { .capslatest = capslatest,
|
struct testQemuConf testConf = { NULL, NULL, NULL };
|
||||||
.capscache = capscache,
|
|
||||||
.qapiSchemaCache = NULL };
|
|
||||||
|
|
||||||
if (!capslatest)
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
if (qemuTestDriverInit(&driver) < 0)
|
if (qemuTestDriverInit(&driver) < 0)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user