Skip to content

Properly fix oe-selftest QEMU usage + related fixes

Paul Eggleton openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11oe-selftest: add scripts/lib and bitbake/lib to pathscripts/oe-selftest+4 -10 replies
2/11oeqa/targetcontrol: create test directory before copying rootfs imagemeta/lib/oeqa/targetcontrol.py+1 -00 replies
3/11oeqa/utils/qemurunner: fix loggingmeta/lib/oeqa/utils/qemurunner.py+24 -250 replies
4/11oeqa/utils/qemurunner: avoid blocking on stty when running under oe-selftestmeta/lib/oeqa/utils/qemurunner.py+5 -10 replies
5/11oeqa/utils/qemurunner: fix error handling if runqemu exits with an errormeta/lib/oeqa/utils/qemurunner.py+14 -10 replies
6/11oeqa/targetcontrol: write QemuRunner log output to a filemeta/lib/oeqa/targetcontrol.py+11 -00 replies
7/11oeqa/selftest/imagefeatures: Use QemuTarget codemeta/lib/oeqa/selftest/imagefeatures.py meta/lib/oeqa/utils/commands.py+67 -780 replies
8/11oeqa/selftest/imagefeatures: fix SSH without password testsmeta/lib/oeqa/selftest/imagefeatures.py+9 -40 replies
9/11oeqa/selftest/imagefeatures: fix RPM4 testmeta/lib/oeqa/selftest/imagefeatures.py+44 -310 replies
10/11oeqa/selftest/imagefeatures: remove gummiboot testsmeta/lib/oeqa/selftest/imagefeatures.py+0 -750 replies
11/11oeqa/selftest/devtool: use new runqemu functionmeta/lib/oeqa/selftest/devtool.py+34 -380 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Properly fix oe-selftest QEMU usage + related fixes

The tests in oeqa/selftest/imagefeatures have had a long list of issues that we've worked around; this patchset implements the ability to run QEMU from oe-selftest tests properly and attempts to fix the remaining known issues with the tests. At the same time we can make the devtool test that uses QEMU use the new runqemu() logic, so do that as well.

When we did do the proper runqemu() implementation however, I uncovered a number of other problems to do with error handling, process termination and logging. This patchset should address those as well.

Thanks to Richard for the initial set of fixes which I built upon here.

The following changes since commit 03d01393d14b7b20dcb40ff89b1628883fd3b545:

toaster.bbclass: Fix ValueError (2015-07-27 12:26:57 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib paule/oe-selftest-qemu-fixes
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/oe-selftest-qemu-fixes

Paul Eggleton (9):
oe-selftest: add scripts/lib and bitbake/lib to path oeqa/targetcontrol: create test directory before copying rootfs image oeqa/utils/qemurunner: fix logging
oeqa/utils/qemurunner: avoid blocking on stty when running under
oe-selftest
oeqa/utils/qemurunner: fix error handling if runqemu exits with an
error
oeqa/targetcontrol: write QemuRunner log output to a file oeqa/selftest/imagefeatures: fix RPM4 test oeqa/selftest/imagefeatures: remove gummiboot tests oeqa/selftest/devtool: use new runqemu function

Richard Purdie (2):
oeqa/selftest/imagefeatures: Use QemuTarget code oeqa/selftest/imagefeatures: fix SSH without password tests

 meta/lib/oeqa/selftest/devtool.py       |  72 +++++-----
 meta/lib/oeqa/selftest/imagefeatures.py | 247 +++++++++-----------------------
 meta/lib/oeqa/targetcontrol.py          |  12 ++
 meta/lib/oeqa/utils/commands.py         |  49 +++++++
 meta/lib/oeqa/utils/qemurunner.py       |  70 +++++----
 scripts/oe-selftest                     |   5 +-
 6 files changed, 207 insertions(+), 248 deletions(-)
Signature · 1 line
2.1.0