aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_tests.py
diff options
context:
space:
mode:
authorjuraj.linkes <juraj.linkes@pantheon.tech>2018-11-09 11:58:54 +0100
committerFlorin Coras <florin.coras@gmail.com>2018-11-09 23:33:59 +0000
commitdfb5f2aff3675b3d70ba024dfd367c688ea1def6 (patch)
tree814924c0a84981ed1ea8bc4605659aeb5ca5de1f /test/run_tests.py
parentd5969e4a7b5aa4a51ee65a86e80e8ca3ae01c2a5 (diff)
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>
Diffstat (limited to 'test/run_tests.py')
-rw-r--r--test/run_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_tests.py b/test/run_tests.py
index c42c6a820dc..b2de2e702fb 100644
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -120,7 +120,7 @@ def test_runner_wrapper(suite, keep_alive_pipe, stdouterr_queue,
finished_pipe, result_pipe, logger):
sys.stdout = stdouterr_queue
sys.stderr = stdouterr_queue
- VppTestCase.logger = logger
+ VppTestCase.parallel_handler = logger.handlers[0]
result = VppTestRunner(keep_alive_pipe=keep_alive_pipe,
descriptions=descriptions,
verbosity=verbose,