]> code.ossystems Code Review - openembedded-core.git/commit
qemu-testlib: Add python helper and simplify shell
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Mar 2013 11:44:27 +0000 (11:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Mar 2013 17:23:14 +0000 (17:23 +0000)
commita62263761fc77c139d418236cc52b04bed629229
tree8480e354dbbd5f98e454790e3c9d5d8c567190c9
parentd961e42674bf929adfff391c6f3f284a7e7b0d95
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@linuxfoundation.org>
scripts/qemuimage-testlib
scripts/qemuimage-testlib-pythonhelper [new file with mode: 0755]
scripts/qemuimage-tests/sanity/shutdown