qemuimage-testlib: Increase qemu startup timeouts

We are seeing timeouts on the autobuilder where qemu does start but the script
doesn't appear to be able to detect it in time. This patch increases the
timeouts since there seems little harm in doing so.

(From OE-Core rev: 33a5980ac381409413712b9910ee9638b7958189)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-03-30 09:02:35 +00:00
parent 45e460d084
commit 5d2b15f068

View File

@ -418,7 +418,7 @@ Test_Create_Qemu()
sleep 5 sleep 5
fi fi
while [ ${up_time} -lt 10 ] while [ ${up_time} -lt 30 ]
do do
QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID 2>/dev/null` QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID 2>/dev/null`
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -432,7 +432,7 @@ Test_Create_Qemu()
fi fi
done done
if [ ${up_time} == 10 ]; then if [ ${up_time} == 30 ]; then
Test_Info "No qemu process appeared to start, exiting" Test_Info "No qemu process appeared to start, exiting"
ps axww -O ppid ps axww -O ppid
Test_Info "Process list dumped for debugging purposes" Test_Info "Process list dumped for debugging purposes"
@ -442,6 +442,7 @@ Test_Create_Qemu()
return 1 return 1
fi fi
up_time=0
# Parse IP address of target from the qemu command line # Parse IP address of target from the qemu command line
TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID` TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID`
echo "Target IP is ${TARGET_IPADDR}" echo "Target IP is ${TARGET_IPADDR}"