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

Corneliu Stoicescu corneliux.stoicescu at intel.com
Tue Aug 26 10:05:44 UTC 2014


Adding setUpModule in order to skip the module when gtk+ is not installed in the toolchain.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu at intel.com>
---
 meta/lib/oeqa/sdk/buildsudoku.py | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
1.8.3.2




More information about the Openembedded-core mailing list