From 2119274314f49678de78dc1c5aa2971676fa6774 Mon Sep 17 00:00:00 2001 From: Jiajun Xu Date: Thu, 13 Jan 2011 09:46:14 +0800 Subject: qemuimagetest: Use the same image in sanity testing to fix the timeout issue on autobuilder Fixes [BUGID #595] Because of the QEMU booting slowness issue(see bug #646 and #618), autobuilder may suffer a timeout issue when running sanity test. We introduce variable SHARE_IMAGE here to fix the issue. It is by default set to 1. Poky will copy latest built-out image and keep using it in sanity testing. If it is set to 0, latest built-out image will be copied and tested for each case, which will take much time. Signed-off-by Jiajun Xu --- scripts/qemuimage-tests/sanity/shutdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/qemuimage-tests/sanity/shutdown') diff --git a/scripts/qemuimage-tests/sanity/shutdown b/scripts/qemuimage-tests/sanity/shutdown index e36b4a983..dde03c9a1 100755 --- a/scripts/qemuimage-tests/sanity/shutdown +++ b/scripts/qemuimage-tests/sanity/shutdown @@ -13,7 +13,12 @@ . $POKYBASE/scripts/qemuimage-testlib -TIMEOUT=360 +if [ $SHARE_IMAGE -eq 0 ]; then + TIMEOUT=200 +elif [ $SHARE_IMAGE -eq 1 ]; then + TIMEOUT=500 +fi + RET=1 i=0 -- cgit v1.2.3