[oe-commits] Corneliu Stoicescu : oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 27 11:13:09 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 97ac0fc33b9277825089ac36f9037d472d397b71
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=97ac0fc33b9277825089ac36f9037d472d397b71
Author: Corneliu Stoicescu <corneliux.stoicescu at intel.com>
Date: Tue Aug 26 13:05:44 2014 +0300
oeqa/sdk/buildsudoku.py: add setUpModule method to run only when gtk+ in installed.
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>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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
More information about the Openembedded-commits
mailing list