]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: Clean up logger handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Nov 2017 18:17:17 +0000 (18:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Nov 2017 11:49:13 +0000 (11:49 +0000)
commit4ff678137a55b93c9ba2cbffda34335ba859f704
tree327a516c847e7bf2bd73f1e7c2286e8a0bf160d4
parente241fb128840889acff79dbf3fae7bfaafcb5357
oeqa: Clean up logger handling

The logger handling in oeqa was confused at best. This patch:

a) Passes in a logger through various qemu runner pieces
b) Uses that logger consistently in the code
c) Creates a logger for QemuRunner outside the bitbake namespace
   meaning we don't conflict with the tinfoil logging changes

The result of this is more consistency. For runtime tests in testimage,
the logs always contain the debug info, nothing is shwon on the console.
For the oe-selftests, logs are intercepted and only shown if the test
fails.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/target/qemu.py
meta/lib/oeqa/selftest/cases/runqemu.py
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/commands.py
meta/lib/oeqa/utils/qemurunner.py
meta/lib/oeqa/utils/qemutinyrunner.py