]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/sanity: test for DISPLAY being set with testimage class
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 19 Sep 2013 12:12:49 +0000 (13:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Sep 2013 11:14:32 +0000 (12:14 +0100)
Update the sanity test for DISPLAY being set to handle the new testimage
class rather than the old imagetest-qemu class.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/sanity.bbclass

index feffed943108c470e1d38256fbf426ba8698a078..b8e5b02da0ff89606ae77f96e56cbcf800229582 100644 (file)
@@ -627,11 +627,11 @@ def check_sanity_everybuild(status, d):
 
     check_supported_distro(d)
 
-    # Check if DISPLAY is set if IMAGETEST is set
-    if d.getVar( 'IMAGETEST', True ) == 'qemu':
+    # Check if DISPLAY is set if TEST_IMAGE is set
+    if d.getVar('TEST_IMAGE', True) == '1' or d.getVar('DEFAULT_TEST_SUITES', True):
         display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True)
         if not display:
-            status.addresult('qemuimagetest needs an X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n')
+            status.addresult('testimage needs an X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n')
 
     omask = os.umask(022)
     if omask & 0755: