mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 06:14:03 +00:00
trivial: skip self tests that fail with G_IO_ERROR_NOT_DIRECTORY
fixes: #5370
This commit is contained in:
parent
7b6770061c
commit
c939db9296
@ -35,6 +35,7 @@ fu_linux_swap_plain_func(void)
|
|||||||
0,
|
0,
|
||||||
&error);
|
&error);
|
||||||
if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) ||
|
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_error_matches(error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT)) {
|
||||||
g_test_skip(error->message);
|
g_test_skip(error->message);
|
||||||
return;
|
return;
|
||||||
|
@ -118,6 +118,7 @@ fu_redfish_network_device_match(FuRedfishNetworkMatchHelper *helper, GError **er
|
|||||||
&error_local);
|
&error_local);
|
||||||
if (proxy == NULL) {
|
if (proxy == NULL) {
|
||||||
if (g_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_DBUS_ERROR) ||
|
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_error_matches(error_local, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
|
||||||
g_set_error_literal(error,
|
g_set_error_literal(error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user