]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
qemuimage-testlib: Add delay to work around races in qemu startup
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Mar 2013 09:27:39 +0000 (09:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Mar 2013 17:23:47 +0000 (17:23 +0000)
Qemu changes pid when starting up. On a loaded machine, this can result
in the incorrect pid being returned. Since qemu will take a few seconds to
boot anyway, we might as well delay a short while and allow things to settle
which should fix various race issues being seen on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/qemuimage-testlib

index 42c3004f6fabf4eb3cabccbc61432dbdaa92183e..5096bfc18756b147ccb8e200f044a5b89fed624e 100755 (executable)
@@ -405,6 +405,8 @@ Test_Create_Qemu()
                # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu
                XTERMPID=$!
                echo "XTERMPID is $XTERMPID"
+               # When starting, qemu can reexecute itself and change PID so wait a short while for things to settle
+               sleep 5
        fi
 
        while [ ${up_time} -lt 10 ]