NetworkManager/src/settings/plugins/keyfile/tests
Thomas Haller b6d3b98655 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
2015-04-08 14:39:16 +02:00
..
keyfiles keyfile: support writing certificates as blob inside the keyfile 2015-03-12 18:16:58 +01:00
Makefile.am tests: enable valgrind tests for tests 2015-02-09 11:51:07 +01:00
test-keyfile.c test: setup logging during nmtst_init_assert_logging() 2015-04-08 14:39:16 +02:00