mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
virschematest: Access the right directory containing XMLs
So the story goes like this. The testSchemaDirs() function is called with: a) the schema file, b) list of the directories that contains XMLs documents that should be checked against the schema file from a). However, the directories in the list are really just their names and it's up to testSchemaDirs to construct the absolute path and call testSchemaDir() which then does the actual validation. The absolute path is constructed, but never actually used (maybe due to a typo). Thus a VPATH build is broken. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
cf0974fbca
commit
6895068d6d
@ -140,7 +140,7 @@ testSchemaDirs(const char *schema, ...)
|
||||
ret = -1;
|
||||
goto cleanup;
|
||||
}
|
||||
if (testSchemaDir(schema, validator, dir) < 0)
|
||||
if (testSchemaDir(schema, validator, dir_path) < 0)
|
||||
ret = -1;
|
||||
VIR_FREE(dir_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user