Fix logging into multiple files 37/15837/2
authorjuraj.linkes <juraj.linkes@pantheon.tech>
Fri, 9 Nov 2018 10:58:54 +0000 (11:58 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 9 Nov 2018 23:33:59 +0000 (23:33 +0000)
commitdfb5f2aff3675b3d70ba024dfd367c688ea1def6
tree814924c0a84981ed1ea8bc4605659aeb5ca5de1f
parentd5969e4a7b5aa4a51ee65a86e80e8ca3ae01c2a5
Fix logging into multiple files

When running tests in one process, only one logger was used and each
testcase added its own file handler, which resulted in logs appearing in
multiple files. Fix this by restoring the creation of new loggers
for each testcase and only reuse the stream handler from parent process.

Change-Id: I5b8471e041dc769128fddb433d33812bfcb5ecf6
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
test/framework.py
test/log.py
test/run_tests.py