Patchwork [4/4] oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.

login
register
mail settings
Submitter Corneliu Stoicescu
Date Aug. 26, 2014, 10:05 a.m.
Message ID <1409047544-7026-5-git-send-email-corneliux.stoicescu@intel.com>
Download mbox | patch
Permalink /patch/78957/
State Accepted
Commit 61e3e41ad2e50668931783a02c4bec8522744e76
Headers show

Comments

Corneliu Stoicescu - Aug. 26, 2014, 10:05 a.m.
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>
---
 meta/lib/oeqa/sdk/buildsudoku.py | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/lib/oeqa/sdk/buildsudoku.py b/meta/lib/oeqa/sdk/buildsudoku.py
index 6a60c76..dea77c6 100644
--- a/meta/lib/oeqa/sdk/buildsudoku.py
+++ b/meta/lib/oeqa/sdk/buildsudoku.py
@@ -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