Commit 6eaae3d1 authored by Thomas Haller's avatar Thomas Haller

TEST: print specs for debugging test failure "allow_wired_connections"

parent 02be370b
Pipeline #58348 failed with stages
in 74 minutes and 36 seconds
......@@ -1685,6 +1685,7 @@ constructed (GObject *object)
NMConfigData *self = NM_CONFIG_DATA (object);
NMConfigDataPrivate *priv = NM_CONFIG_DATA_GET_PRIVATE (self);
char *str;
const GSList *sp;
priv->keyfile = _merge_keyfiles (priv->keyfile_user, priv->keyfile_intern);
......@@ -1748,6 +1749,12 @@ constructed (GObject *object)
if (!priv->global_dns)
priv->global_dns = load_global_dns (priv->keyfile_intern, TRUE);
nm_log_info (LOGD_CORE, ">>>> config[%p]: specs:", self);
for (sp = priv->no_auto_default.specs_config; sp; sp = sp->next)
nm_log_info (LOGD_CORE, ">>>> config[%p]: config-spec %s", self, (char *) sp->data);
for (sp = priv->no_auto_default.specs; sp; sp = sp->next)
nm_log_info (LOGD_CORE, ">>>> config[%p]: other-spec %s", self, (char *) sp->data);
G_OBJECT_CLASS (nm_config_data_parent_class)->constructed (object);
}
......
......@@ -1085,6 +1085,8 @@ main (int argc, char **argv)
{
nmtst_init_assert_logging (&argc, &argv, "INFO", "DEFAULT");
goto out;
nm_fake_platform_setup ();
g_test_add_func ("/config/simple", test_config_simple);
......@@ -1111,6 +1113,7 @@ main (int argc, char **argv)
*/
g_test_add_func ("/config/override", test_config_override);
out:
return g_test_run ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment