trivial: uefi: don't let user's environment fail UEFI/Dell test suite

Comment from https://github.com/fwupd/fwupd/issues/2553#issuecomment-728218741
makes it clear that test suite should ignore some of environment.
This commit is contained in:
Mario Limonciello 2020-11-16 13:48:35 -06:00 committed by Mario Limonciello
parent 103ce59922
commit 5b3eb78d5b

View File

@ -620,6 +620,10 @@ fu_plugin_startup (FuPlugin *plugin, GError **error)
g_autofree gchar *nvram_total_str = NULL;
g_autoptr(GError) error_local = NULL;
/* don't let user's environment influence test suite failures */
if (g_getenv ("FWUPD_UEFI_TEST") != NULL)
return TRUE;
/* some platforms have broken SMBIOS data */
if (fu_plugin_has_custom_flag (plugin, "uefi-force-enable"))
return TRUE;