aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-20 09:27:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-20 09:28:20 +0000
commitc0cecc16d4305b16ecfb4a51f6d5020d34909794 (patch)
treed05b34736bd1ff176c0bfe47e9cdd61f9ed20a35 /scripts
parent6b8d7767ff14345af29d7774b7e16e29c3f7fa8e (diff)
downloadopenembedded-core-contrib-c0cecc16d4305b16ecfb4a51f6d5020d34909794.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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/qemuimage-testlib2
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()
# 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 ]