mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 08:42:46 +00:00
trivial: Fix self tests when using -Dgresource_quirks=enabled
We want to also skip the compiled-in GResource quirks if loading the context with _NO_CACHE.
This commit is contained in:
parent
64cf323e57
commit
096364199b
@ -390,8 +390,13 @@ fu_quirks_check_silo(FuQuirks *self, GError **error)
|
|||||||
|
|
||||||
/* built-in quirks */
|
/* built-in quirks */
|
||||||
builder = xb_builder_new();
|
builder = xb_builder_new();
|
||||||
if (!fu_quirks_add_quirks_for_resources(self, builder, "/org/freedesktop/fwupd", error))
|
if ((self->load_flags & FU_QUIRKS_LOAD_FLAG_NO_CACHE) == 0) {
|
||||||
|
if (!fu_quirks_add_quirks_for_resources(self,
|
||||||
|
builder,
|
||||||
|
"/org/freedesktop/fwupd",
|
||||||
|
error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* system datadir */
|
/* system datadir */
|
||||||
datadir = fu_path_from_kind(FU_PATH_KIND_DATADIR_QUIRKS);
|
datadir = fu_path_from_kind(FU_PATH_KIND_DATADIR_QUIRKS);
|
||||||
|
Loading…
Reference in New Issue
Block a user