mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 06:10:13 +00:00
Allow self tests to pass when run in LXC zones
Fixes https://github.com/fwupd/fwupd/issues/4684
This commit is contained in:
parent
2705179117
commit
6aec72d58a
@ -43,6 +43,10 @@ fu_linux_swap_plain_func(void)
|
|||||||
g_test_skip(error->message);
|
g_test_skip(error->message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED)) {
|
||||||
|
g_test_skip(error->message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
g_assert_no_error(error);
|
g_assert_no_error(error);
|
||||||
g_assert_nonnull(swap);
|
g_assert_nonnull(swap);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user