[oe-commits] [openembedded-core] 18/61: oeqa/sdk/cases/buildgalculator.py: skip if gettext not available

git at git.openembedded.org git at git.openembedded.org
Tue May 29 10:43:45 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit ccc10e95c9fcdabcf4ae5e6f9cc34c1d632b4654
Author: Chen Qi <Qi.Chen at windriver.com>
AuthorDate: Fri May 18 11:44:50 2018 +0800

    oeqa/sdk/cases/buildgalculator.py: skip if gettext not available
    
    We need to skip this testcase when gettext is not available. Otherwise,
    we will have the following error at configure.
    
      error: possibly undefined macro: AM_NLS
    
    Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py
index 780afcc..5a5bf99 100644
--- a/meta/lib/oeqa/sdk/cases/buildgalculator.py
+++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py
@@ -11,6 +11,8 @@ class GalculatorTest(OESDKTestCase):
         if not (self.tc.hasTargetPackage("gtk\+3") or\
                 self.tc.hasTargetPackage("libgtk-3.0")):
             raise unittest.SkipTest("GalculatorTest class: SDK don't support gtk+3")
+        if not (self.tc.hasTargetPackage("gettext")):
+            raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain gettext")
 
     def test_galculator(self):
         dl_dir = self.td.get('DL_DIR', None)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list