From 0e63018f9dd46ee90d7b8540a717b01f4a9752c0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Mar 2013 09:27:39 +0000 Subject: 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: 27d00d62281a822efbbc189a3bab1d9b25fba3a7) Signed-off-by: Richard Purdie --- scripts/qemuimage-testlib | 2 ++ 1 file changed, 2 insertions(+) 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 ] -- cgit v1.2.3-54-g00ecf