Poky Project Discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set
  2010-12-16  8:04 [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Jiajun Xu
@ 2010-12-16  8:04 ` Jiajun Xu
  2010-12-16 15:27 ` [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Jiajun Xu @ 2010-12-16  8:04 UTC (permalink / raw)
  To: poky

Fixes [BUGID: 594]

In imagetest-qemu.bbclass, we depend on DISPLAY to start qemu in
a X desktop. When user wants to run qemu sanity test, we need to
check if the variable is set.

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
---
 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index e1f37ac..bc02a82 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -139,6 +139,10 @@ def check_sanity(e):
 		missing = missing.rstrip(',')
 		messages = messages + "Please install following missing utilities: %s\n" % missing
 
+	# Check if DISPLAY is set if IMAGETEST is set
+	if not data.getVar( 'DISPLAY', e.data, True ) and data.getVar( 'IMAGETEST', e.data, True ) == 'qemu':
+		messages = messages + 'qemuimagetest needs a X desktop to start qemu, please set DISPLAY correctly (e.g. DISPLAY=:1.0)\n'
+
 	# Ensure we have the binary for TERMCMD, as when patch application fails the error is fairly intimidating
 	termcmd = data.getVar("TERMCMD", e.data, True)
 	term = termcmd.split()[0]
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass
@ 2010-12-16  8:04 Jiajun Xu
  2010-12-16  8:04 ` [PATCH 1/1] sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set Jiajun Xu
  2010-12-16 15:27 ` [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Jiajun Xu @ 2010-12-16  8:04 UTC (permalink / raw)
  To: poky

[BUGID #594] Fixing bug #594, checking in sanity.bbclass if DISPLAY is set 
when IMAGETEST is set to qemu.

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: jxu49/master
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jxu49/master

Thanks,
    Jiajun Xu <jiajun.xu@intel.com>
---


Jiajun Xu (1):
  sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set

 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass
  2010-12-16  8:04 [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Jiajun Xu
  2010-12-16  8:04 ` [PATCH 1/1] sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set Jiajun Xu
@ 2010-12-16 15:27 ` Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2010-12-16 15:27 UTC (permalink / raw)
  To: Jiajun Xu; +Cc: poky

On Thu, 2010-12-16 at 16:04 +0800, Jiajun Xu wrote:
> [BUGID #594] Fixing bug #594, checking in sanity.bbclass if DISPLAY is set 
> when IMAGETEST is set to qemu.
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: jxu49/master
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jxu49/master
> 
> Thanks,
>     Jiajun Xu <jiajun.xu@intel.com>
> ---
> 
> 
> Jiajun Xu (1):
>   sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set
> 
>  meta/classes/sanity.bbclass |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

Merged into master, thanks!

Richard



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-16 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16  8:04 [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Jiajun Xu
2010-12-16  8:04 ` [PATCH 1/1] sanity.bbclass: Check if DISPLAY is set when IMAGETEST is set Jiajun Xu
2010-12-16 15:27 ` [PATCH 0/1] Fixing for [BUGID #594]. Check DISPLAY is set in sanity.bbclass Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox