]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Tue, 26 Aug 2014 10:05:44 +0000 (13:05 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Aug 2014 11:12:06 +0000 (12:12 +0100)
Adding setUpModule in order to skip the module when gtk+ is not installed in the toolchain.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdk/buildsudoku.py

index 6a60c76be83c6e21d3cd5247da8cd0aa49d52789..dea77c65992bc9176648070b1b6ae427ec40e709 100644 (file)
@@ -2,6 +2,10 @@ from oeqa.oetest import oeSDKTest, skipModule
 from oeqa.utils.decorators import *
 from oeqa.utils.targetbuild import SDKBuildProject
 
+def setUpModule():
+    if not oeSDKTest.hasPackage("gtk\+"):
+        skipModule("Image doesn't have gtk+ in manifest")
+
 class SudokuTest(oeSDKTest):
 
     @classmethod