]> 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>
Sat, 3 Mar 2018 08:32:13 +0000 (08:32 +0000)
commitee13216284c4d49b762eaab488f21de573d2079d
tree660a436349b21a03e48529d2dcf1e652c2d9a1dd
parent4234ea8aae52347e49f848292deb0936ffd905ae
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.

(From OE-Core rev: 9099cecc727fe0ae5f1559582426d30ba7a9f4d3)

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