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

Submitted by Corneliu Stoicescu on Aug. 26, 2014, 10:05 a.m.

Details

Message ID 1409047544-7026-5-git-send-email-corneliux.stoicescu@intel.com
State Accepted
Commit 97ac0fc33b9277825089ac36f9037d472d397b71
Headers show

Commit Message

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 hide | download patch | download mbox

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