mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
tests: ignore XML files starting with a .
If an editor has an XML file open, it may create a temporary . file. The existance of this file will cause the virschematest to fail, so just skip these editor temp files. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
fe8eb8839a
commit
3dc3e58b32
@ -84,6 +84,8 @@ testSchemaDir(const char *schema,
|
||||
while ((rc = virDirRead(dir, &ent, dir_path)) > 0) {
|
||||
if (!virFileHasSuffix(ent->d_name, ".xml"))
|
||||
continue;
|
||||
if (ent->d_name[0] == '.')
|
||||
continue;
|
||||
|
||||
if (virAsprintf(&xml_path, "%s/%s", dir_path, ent->d_name) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user