]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/qemurunner: Improve logging
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Sep 2017 09:49:19 +0000 (10:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Sep 2017 10:46:32 +0000 (11:46 +0100)
commit9099cecc727fe0ae5f1559582426d30ba7a9f4d3
tree61d2cc9317d448b838ba475da3019866638886ba
parentcc319b6dcc5b4a5019fb91c9771b12ce17f3c953
oeqa/qemurunner: Improve logging

Python unittest intercepts stdout and stderr however qemurunner sets
up a streamhandler before that interception occurs, hence the messages
spam the unittest output.

By moving the logging init to the class init time, we use the unittest
stdout/stderr and this means unittest can only show the log output upon
failure. This cleans up the selftest and testimage output whilst still
showing logging upon failure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py