]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/sdk/cases/buildgalculator.py: skip if gettext not available
authorChen Qi <Qi.Chen@windriver.com>
Fri, 18 May 2018 03:44:50 +0000 (11:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 May 2018 10:25:05 +0000 (11:25 +0100)
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@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/sdk/cases/buildgalculator.py

index 780afccc744137423d1599e500768420525d64c0..5a5bf992ebffe62f98035e86663b2978d323c010 100644 (file)
@@ -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)