[oe-commits] Ross Burton : qemurunner: disable grabs in automated testing

git at git.openembedded.org git at git.openembedded.org
Wed Sep 18 16:40:03 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 32f9575a565f350649264c11eceba8311584b0fd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=32f9575a565f350649264c11eceba8311584b0fd

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Sep 18 17:48:46 2013 +0100

qemurunner: disable grabs in automated testing

Use the new QEMU_DONT_GRAB environment variable to disable grabs,
finally/hopefully solving the random hangs that the autobuilder has been hitting
for a while.

[ YOCTO #5131 ]

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/utils/qemurunner.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index d362ede..256cf3c 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -78,6 +78,9 @@ class QemuRunner:
         else:
             os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image
 
+        # Set this flag so that Qemu doesn't do any grabs as SDL grabs interact
+        # badly with screensavers.
+        os.environ["QEMU_DONT_GRAB"] = "1"
         self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8" qemuparams="-serial tcp:127.0.0.1:%s"' % self.serverport
         if qemuparams:
             self.qemuparams = self.qemuparams[:-1] + " " + qemuparams + " " + '\"'



More information about the Openembedded-commits mailing list