<div dir="ltr">On 24 November 2016 at 20:58, <span dir="ltr"><<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com" target="_blank">leonardo.sandoval.gonzalez@linux.intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">From: Leonardo Sandoval <<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com">leonardo.sandoval.gonzalez@<wbr>linux.intel.com</a>><br>
<br>
core-image-clutter and core-image-weston, both required opengl in distro<br>
features, skip relevant tests if this is not the case.<br>
<br>
Signed-off-by: Leonardo Sandoval <<a href="mailto:leonardo.sandoval.gonzalez@linux.intel.com">leonardo.sandoval.gonzalez@<wbr>linux.intel.com</a>><br>
---<br>
meta/lib/oeqa/selftest/<wbr>imagefeatures.py | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/meta/lib/oeqa/selftest/<wbr>imagefeatures.py b/meta/lib/oeqa/selftest/<wbr>imagefeatures.py<br>
index d015c49..a61510b 100644<br>
--- a/meta/lib/oeqa/selftest/<wbr>imagefeatures.py<br>
+++ b/meta/lib/oeqa/selftest/<wbr>imagefeatures.py<br>
@@ -78,6 +78,8 @@ class ImageFeatures(oeSelfTest):<br>
"""<br>
<br>
# Build a core-image-clutter<br>
+ if 'opengl' not in get_bb_var('DISTRO_FEATURES'):<br>
+ self.skipTest('opengl not present on DISTRO_FEATURES so core-image-clutter cannot be built')<br>
bitbake('core-image-clutter')<br></blockquote><div><br></div><div>I don't see the point of this test. Lets save five minutes by just deleting it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
@testcase(1117)<br>
@@ -96,6 +98,8 @@ class ImageFeatures(oeSelfTest):<br>
self.write_config(features)<br>
<br>
# Build a core-image-weston<br>
+ if 'opengl' not in get_bb_var('DISTRO_FEATURES'):<br>
+ self.skipTest('opengl not present on DISTRO_FEATURES so core-image-weston cannot be built')<br>
bitbake('core-image-weston')</blockquote><div><br></div><div>The full test is:</div><div><br></div><div> features = 'DISTRO_FEATURES_append = " wayland"\n'</div><div> features += 'CORE_IMAGE_EXTRA_INSTALL += "wayland weston"'</div><div> self.write_config(features)</div><div><br></div><div> # Build a core-image-weston</div><div> bitbake('core-image-weston')</div><div><br></div><div>Adding wayland and weston to IMAGE_INSTALL is pointless as thats what the image does. Adding wayland is madness if the distro doesn't support it.</div><div><br></div><div>Can you rewrite this test so it's basically just "if DISTRO_FEATURES contains opengl and wayland, build core-image-weston".</div><div><br></div><div>Ross</div></div></div></div>