trivial: skip self tests that fail with G_IO_ERROR_NOT_DIRECTORY

fixes: #5370
This commit is contained in:
Mario Limonciello 2023-01-03 20:19:39 -06:00 committed by Richard Hughes
parent 7b6770061c
commit c939db9296
2 changed files with 2 additions and 0 deletions

View File

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

View File

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