mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
testQEMUSchemaLoad: Rename to testQEMUSchemaLoadLatest
It always loads the latest schema. Prepare for loading others as well. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
@@ -1056,7 +1056,7 @@ mymain(void)
|
|||||||
diskxmljsondata.qemuCaps = caps_x86_64;
|
diskxmljsondata.qemuCaps = caps_x86_64;
|
||||||
imagecreatedata.qemuCaps = caps_x86_64;
|
imagecreatedata.qemuCaps = caps_x86_64;
|
||||||
|
|
||||||
if (!(qmp_schema_x86_64 = testQEMUSchemaLoad("x86_64"))) {
|
if (!(qmp_schema_x86_64 = testQEMUSchemaLoadLatest("x86_64"))) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -636,7 +636,7 @@ mymain(void)
|
|||||||
if (!(driver.domainEventState = virObjectEventStateNew()))
|
if (!(driver.domainEventState = virObjectEventStateNew()))
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
if (!(qmpschema = testQEMUSchemaLoad("x86_64"))) {
|
if (!(qmpschema = testQEMUSchemaLoadLatest("x86_64"))) {
|
||||||
VIR_TEST_VERBOSE("failed to load qapi schema\n");
|
VIR_TEST_VERBOSE("failed to load qapi schema\n");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3124,7 +3124,7 @@ mymain(void)
|
|||||||
|
|
||||||
virEventRegisterDefaultImpl();
|
virEventRegisterDefaultImpl();
|
||||||
|
|
||||||
if (!(qapiData.schema = testQEMUSchemaLoad("x86_64"))) {
|
if (!(qapiData.schema = testQEMUSchemaLoadLatest("x86_64"))) {
|
||||||
VIR_TEST_VERBOSE("failed to load qapi schema");
|
VIR_TEST_VERBOSE("failed to load qapi schema");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@@ -3394,7 +3394,7 @@ mymain(void)
|
|||||||
#undef DO_TEST_QUERY_JOBS
|
#undef DO_TEST_QUERY_JOBS
|
||||||
|
|
||||||
virHashFree(qapiData.schema);
|
virHashFree(qapiData.schema);
|
||||||
if (!(qapiData.schema = testQEMUSchemaLoad("s390x"))) {
|
if (!(qapiData.schema = testQEMUSchemaLoadLatest("s390x"))) {
|
||||||
VIR_TEST_VERBOSE("failed to load qapi schema for s390x");
|
VIR_TEST_VERBOSE("failed to load qapi schema for s390x");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ testQEMUSchemaGetLatest(const char* arch)
|
|||||||
|
|
||||||
|
|
||||||
virHashTablePtr
|
virHashTablePtr
|
||||||
testQEMUSchemaLoad(const char* arch)
|
testQEMUSchemaLoadLatest(const char *arch)
|
||||||
{
|
{
|
||||||
virJSONValuePtr schema;
|
virJSONValuePtr schema;
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,4 @@ virJSONValuePtr
|
|||||||
testQEMUSchemaGetLatest(const char* arch);
|
testQEMUSchemaGetLatest(const char* arch);
|
||||||
|
|
||||||
virHashTablePtr
|
virHashTablePtr
|
||||||
testQEMUSchemaLoad(const char* arch);
|
testQEMUSchemaLoadLatest(const char *arch);
|
||||||
|
|||||||
Reference in New Issue
Block a user