summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index dd7fe4cdfb..989bdcd7cd 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -672,9 +672,11 @@ def check_sanity_everybuild(status, d):
672 672
673 # Check if DISPLAY is set if TEST_IMAGE is set 673 # Check if DISPLAY is set if TEST_IMAGE is set
674 if d.getVar('TEST_IMAGE', True) == '1' or d.getVar('DEFAULT_TEST_SUITES', True): 674 if d.getVar('TEST_IMAGE', True) == '1' or d.getVar('DEFAULT_TEST_SUITES', True):
675 display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True) 675 testtarget = d.getVar('TEST_TARGET', True)
676 if not display: 676 if testtarget == 'qemu' or testtarget == 'QemuTarget':
677 status.addresult('testimage needs an X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n') 677 display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True)
678 if not display:
679 status.addresult('testimage needs an X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n')
678 680
679 omask = os.umask(022) 681 omask = os.umask(022)
680 if omask & 0755: 682 if omask & 0755: