From c939db9296d3a7dcf8c8be022da212b50684aba7 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 3 Jan 2023 20:19:39 -0600 Subject: [PATCH] trivial: skip self tests that fail with G_IO_ERROR_NOT_DIRECTORY fixes: #5370 --- plugins/linux-swap/fu-self-test.c | 1 + plugins/redfish/fu-redfish-network.c | 1 + 2 files changed, 2 insertions(+) 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,