classes/sanity: test for DISPLAY being set with testimage class

Update the sanity test for DISPLAY being set to handle the new testimage
class rather than the old imagetest-qemu class.

(From OE-Core rev: d1297c2c3ae71de0e9e5cab36e582f5df8666391)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2013-09-19 13:12:49 +01:00 committed by Richard Purdie
parent a3558bfb99
commit 595321a626
1 changed files with 3 additions and 3 deletions

View 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: