diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-20 09:27:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-20 09:29:29 +0000 |
commit | a317cc911abe33d0f513d48e7bc4afd319c7e040 (patch) | |
tree | f36e7228d4eaf72bf9cc341500ef3fade6ed11f9 /scripts | |
parent | 808967b84cef66e0b59b9a720fa0808f6a546d3a (diff) | |
download | poky-a317cc911abe33d0f513d48e7bc4afd319c7e040.tar.gz |
qemuimage-testlib: Add delay to work around races in qemu startup
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.
(From OE-Core rev: c0cecc16d4305b16ecfb4a51f6d5020d34909794)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/qemuimage-testlib | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 42c3004f6f..5096bfc187 100755 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib | |||
@@ -405,6 +405,8 @@ Test_Create_Qemu() | |||
405 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu | 405 | # Get the pid of the xterm processor, which will be used in Test_Kill_Qemu |
406 | XTERMPID=$! | 406 | XTERMPID=$! |
407 | echo "XTERMPID is $XTERMPID" | 407 | echo "XTERMPID is $XTERMPID" |
408 | # When starting, qemu can reexecute itself and change PID so wait a short while for things to settle | ||
409 | sleep 5 | ||
408 | fi | 410 | fi |
409 | 411 | ||
410 | while [ ${up_time} -lt 10 ] | 412 | while [ ${up_time} -lt 10 ] |