mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
qemuimagetest: fix erroneous ps errors when qemu couldn't be started
The helper script was printing an error to stdout when it couldn't find any qemu child processes; output this error to stderr instead and redirect stderr to /dev/null when running from qemuimage-testlib so that QEMUPID is actually blank if there are no qemu instances found. (From OE-Core rev: 21edf5ec12d8307c528f157c8e078dbefe25d1ef) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
317301d146
commit
d76a3f534d
|
|
@ -420,7 +420,7 @@ Test_Create_Qemu()
|
|||
|
||||
while [ ${up_time} -lt 10 ]
|
||||
do
|
||||
QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID`
|
||||
QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID 2>/dev/null`
|
||||
if [ $? -ne 0 ]; then
|
||||
Test_Info "Wait for qemu up..."
|
||||
up_time=`expr $up_time + 5`
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if options.findqemu:
|
|||
commands[data[0]] = data[2]
|
||||
|
||||
if options.findqemu not in pids:
|
||||
print "No children found matching %s" % options.findqemu
|
||||
sys.stderr.write("No children found matching %s" % options.findqemu)
|
||||
sys.exit(1)
|
||||
|
||||
parents = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user