From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 3/5] classes/sanity: test for DISPLAY being set with testimage class
Date: Fri, 20 Sep 2013 10:27:51 +0100 [thread overview]
Message-ID: <5e48791ccbb9ab86eef2f7dbbecb496a35ec6fcd.1379669217.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1379669217.git.paul.eggleton@linux.intel.com>
In-Reply-To: <cover.1379669217.git.paul.eggleton@linux.intel.com>
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index feffed9..b8e5b02 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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:
--
1.8.1.2
next prev parent reply other threads:[~2013-09-20 9:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-20 9:27 [PATCH 0/5] Removal of imagetest-qemu in favour of testimage Paul Eggleton
2013-09-20 9:27 ` [PATCH 1/5] classes/testimage: remove odd characters in comments Paul Eggleton
2013-09-20 9:27 ` [PATCH 2/5] classes/testimage-auto: add class to allow automatically running image tests Paul Eggleton
2013-09-20 9:41 ` Paul Eggleton
2013-09-20 9:27 ` Paul Eggleton [this message]
2013-09-20 9:27 ` [PATCH 4/5] conf/local.conf.sample: update for new testimage class Paul Eggleton
2013-09-20 9:27 ` [PATCH 5/5] classes/imagetest-qemu: remove old image testing class Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e48791ccbb9ab86eef2f7dbbecb496a35ec6fcd.1379669217.git.paul.eggleton@linux.intel.com \
--to=paul.eggleton@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox