diff --git a/plugins/linux-swap/fu-self-test.c b/plugins/linux-swap/fu-self-test.c index 97a4f671c..ea6c6b177 100644 --- a/plugins/linux-swap/fu-self-test.c +++ b/plugins/linux-swap/fu-self-test.c @@ -35,6 +35,7 @@ fu_linux_swap_plain_func(void) 0, &error); if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) || + g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY) || g_error_matches(error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT)) { g_test_skip(error->message); return; diff --git a/plugins/redfish/fu-redfish-network.c b/plugins/redfish/fu-redfish-network.c index 6566cc4e6..806948a80 100644 --- a/plugins/redfish/fu-redfish-network.c +++ b/plugins/redfish/fu-redfish-network.c @@ -118,6 +118,7 @@ fu_redfish_network_device_match(FuRedfishNetworkMatchHelper *helper, GError **er &error_local); if (proxy == NULL) { if (g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_DBUS_ERROR) || + g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY) || g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { g_set_error_literal(error, FWUPD_ERROR,