The schema validator has a comment which allows checking all xml2argv
input files for schema validity by forcing the latest schema onto files
which don't have any schema. Fix it so that it works properly with the
caching introduced in previous commit.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
unsigned int parseFlags = info->parseFlags;
bool netdevQAPIfied = false;
+ /* comment out with line comment to enable schema checking for non _CAPS tests
+ if (!info->schemafile)
+ info->schemafile = testQemuGetLatestCapsForArch(virArchToString(info->arch), "replies");
+ // */
+
if (info->schemafile) {
/* lookup and insert into cache if not found */
if (!g_hash_table_lookup_extended(info->qapiSchemaCache,
}
}
- /* comment out with line comment to enable schema checking for non _CAPS tests
- if (!schema)
- schema = testQEMUSchemaLoadLatest(virArchToString(info->arch));
- // */
-
if (!schema)
return 0;