trivial: redfish: use the configured prefix to determine if it's an installed test

fixes: #3880
This commit is contained in:
Mario Limonciello 2022-02-28 11:21:05 -06:00 committed by Mario Limonciello
parent 13551d2d3f
commit 5bc5462213
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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