NetworkManager/src/tests
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
..
config test: setup logging during nmtst_init_assert_logging() 2015-04-09 08:22:28 +02:00
Makefile.am tests: enable valgrind tests for tests 2015-03-13 11:50:04 +01:00
test-dcb.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-general-with-expect.c test: setup logging during nmtst_init_assert_logging() 2015-04-09 08:22:28 +02:00
test-general.c tests: fix setting MAC address in tests 2014-12-11 11:33:32 +01:00
test-ip4-config.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-ip6-config.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-resolvconf-capture.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
test-secret-agent.py use /usr/bin/env instead of /bin/env 2011-03-29 01:00:47 +02:00
test-wired-defname.c test: initialize auto-destructed pointers 2015-03-13 11:50:50 +01:00