mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 19:48:47 +00:00
trivial: redfish: use the configured prefix to determine if it's an installed test
fixes: #3880
This commit is contained in:
parent
13551d2d3f
commit
5bc5462213
@ -483,6 +483,7 @@ endif
|
||||
gnome = import('gnome')
|
||||
i18n = import('i18n')
|
||||
|
||||
conf.set_quoted('FWUPD_PREFIX', prefix)
|
||||
conf.set_quoted('FWUPD_BINDIR', bindir)
|
||||
conf.set_quoted('FWUPD_LIBDIR', libdir)
|
||||
conf.set_quoted('FWUPD_LIBEXECDIR', libexecdir)
|
||||
|
@ -27,7 +27,7 @@ fu_test_is_installed_test(void)
|
||||
const gchar *builddir = g_getenv("G_TEST_BUILDDIR");
|
||||
if (builddir == NULL)
|
||||
return FALSE;
|
||||
return g_str_has_prefix(builddir, "/usr");
|
||||
return g_str_has_prefix(builddir, FWUPD_PREFIX);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user