diff options
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 48ac77d744..e1888ba34b 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -499,8 +499,10 @@ def check_sanity(sanity_data): | |||
499 | messages = messages + toolchain_msg + '\n' | 499 | messages = messages + toolchain_msg + '\n' |
500 | 500 | ||
501 | # Check if DISPLAY is set if IMAGETEST is set | 501 | # Check if DISPLAY is set if IMAGETEST is set |
502 | if not sanity_data.getVar( 'DISPLAY', True ) and sanity_data.getVar( 'IMAGETEST', True ) == 'qemu': | 502 | if sanity_data.getVar( 'IMAGETEST', True ) == 'qemu': |
503 | messages = messages + 'qemuimagetest needs a X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n' | 503 | display = sanity_data.getVar("BB_ORIGENV", False).getVar("DISPLAY", True) |
504 | if not display: | ||
505 | messages = messages + 'qemuimagetest needs a X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n' | ||
504 | 506 | ||
505 | omask = os.umask(022) | 507 | omask = os.umask(022) |
506 | if omask & 0755: | 508 | if omask & 0755: |