mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 14:33:24 +00:00
trivial: skip self tests for fwupd_client_remotes_func if G_DBUS_ERROR_NAME_HAS_NO_OWNER
Fixes: #5073
This commit is contained in:
parent
b7ac4b4077
commit
7be0c033a9
@ -983,6 +983,7 @@ fwupd_client_devices_func(void)
|
|||||||
/* only run if running fwupd is new enough */
|
/* only run if running fwupd is new enough */
|
||||||
ret = fwupd_client_connect(client, NULL, &error);
|
ret = fwupd_client_connect(client, NULL, &error);
|
||||||
if (ret == FALSE && (g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_TIMED_OUT) ||
|
if (ret == FALSE && (g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_TIMED_OUT) ||
|
||||||
|
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER) ||
|
||||||
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) {
|
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) {
|
||||||
g_debug("%s", error->message);
|
g_debug("%s", error->message);
|
||||||
g_test_skip("timeout connecting to daemon");
|
g_test_skip("timeout connecting to daemon");
|
||||||
@ -1038,6 +1039,7 @@ fwupd_client_remotes_func(void)
|
|||||||
/* only run if running fwupd is new enough */
|
/* only run if running fwupd is new enough */
|
||||||
ret = fwupd_client_connect(client, NULL, &error);
|
ret = fwupd_client_connect(client, NULL, &error);
|
||||||
if (ret == FALSE && (g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_TIMED_OUT) ||
|
if (ret == FALSE && (g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_TIMED_OUT) ||
|
||||||
|
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER) ||
|
||||||
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) {
|
g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))) {
|
||||||
g_debug("%s", error->message);
|
g_debug("%s", error->message);
|
||||||
g_test_skip("timeout connecting to daemon");
|
g_test_skip("timeout connecting to daemon");
|
||||||
|
Loading…
Reference in New Issue
Block a user