NetworkManager/src/dhcp-manager
Thomas Haller 643d412688 test: setup logging during nmtst_init_assert_logging()
Before, when having a test with nmtst_init_assert_logging(),
the caller was expected to setup logging separately according
to the log level that the test asserts against.

Since 5e74891b58, the logging
level can be reset via NMTST_DEBUG also for tests that
assert logging. In this case, it would be useful, if the test
would not overwrite the logging level that is set externally
via NMTST_DEBUG.

Instead, let the test pass the logging configuration to
nmtst_init_assert_logging(), and nmtst will setup logging
-- either according to NMTST_DEBUG or as passed in.

This way, setting the log level works also for no-expect-message
tests:

  NMTST_DEBUG="debug,no-expect-message,log-level=TRACE" $TEST

(cherry picked from commit b6d3b98655)
2015-04-09 08:22:28 +02:00
..
systemd-dhcp logging: pass file:line as separate arguments to _nm_log() 2014-12-18 17:38:35 +01:00
tests test: setup logging during nmtst_init_assert_logging() 2015-04-09 08:22:28 +02:00
Makefile.am dhcp-manager: port nm-dhcp-helper from dbus-glib to gdbus 2014-09-04 18:19:21 -04:00
nm-dhcp-client.c dhcp-client: memleak: free uuid on dispose 2015-02-18 18:15:35 +01:00
nm-dhcp-client.h core: better handle DHCP expiry/nak during initial lease acquisition (bgo #739482) 2014-12-12 11:00:00 -06:00
nm-dhcp-dhclient-utils.c dhclient: use fqdn.fqdn for server DDNS updates 2015-02-27 10:06:25 -06:00
nm-dhcp-dhclient-utils.h dhcp: preserve DHCPv4 client ID for later use 2014-11-07 12:18:32 -06:00
nm-dhcp-dhclient.c dhcp: pass device specific route metric to nm_dhcp_systemd_get_lease_ip_configs() 2014-11-24 10:52:56 -05:00
nm-dhcp-dhclient.h dhcp: move client-specific knowledge out of the manager 2014-11-07 12:18:32 -06:00
nm-dhcp-dhcpcd.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-dhcp-dhcpcd.h dhcp: move client-specific knowledge out of the manager 2014-11-07 12:18:32 -06:00
nm-dhcp-helper.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-dhcp-helper.conf dhcp: use private socket to return status if available 2013-04-08 11:30:31 -05:00
nm-dhcp-listener.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
nm-dhcp-listener.h dhcp: move D-Bus DHCP listener into separate class 2014-11-07 12:18:32 -06:00
nm-dhcp-manager.c dhcp: pass device specific route metric to nm_dhcp_systemd_get_lease_ip_configs() 2014-11-24 10:52:56 -05:00
nm-dhcp-manager.h dhcp: pass device specific route metric to nm_dhcp_systemd_get_lease_ip_configs() 2014-11-24 10:52:56 -05:00
nm-dhcp-systemd.c core: better handle DHCP expiry/nak during initial lease acquisition (bgo #739482) 2014-12-12 11:00:00 -06:00
nm-dhcp-systemd.h dhcp: move client-specific knowledge out of the manager 2014-11-07 12:18:32 -06:00
nm-dhcp-utils.c dhcp: fix memleak in process_dhclient_rfc3442_route() 2015-03-13 11:50:04 +01:00
nm-dhcp-utils.h dhcp: add nm_dhcp_utils_client_id_string_to_bytes() 2014-11-06 21:58:32 -06:00