[oe-commits] Richard Purdie : qemu-testlib: Add python helper and simplify shell

git at git.openembedded.org git at git.openembedded.org
Wed Mar 27 17:27:21 UTC 2013


Module: openembedded-core.git
Branch: danny
Commit: a62263761fc77c139d418236cc52b04bed629229
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a62263761fc77c139d418236cc52b04bed629229

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Mar 19 11:44:27 2013 +0000

qemu-testlib: Add python helper and simplify shell

The current code has a race since it greps for *any* qemu process
running, even if it isn't the one we started. This leads to some sanity
tests potentially failing on machines where multiple sets of sanity tests
are running.

To resovle this and some other ugly code issues, add a python script
to accurately walk the process tree and find the qemu process. We can
then replace all the shell functions attempting this which happen to
work in many cases but not all.

Also clean up some of the error handling so its more legible.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/qemuimage-testlib               |  212 ++++++++-----------------------
 scripts/qemuimage-testlib-pythonhelper  |   61 +++++++++
 scripts/qemuimage-tests/sanity/shutdown |    2 +-
 3 files changed, 117 insertions(+), 158 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=a62263761fc77c139d418236cc52b04bed629229




More information about the Openembedded-commits mailing list