Skip to contentSkip to conversation

oeqa/sdk/cases/buildgalculator.py: skip if gettext not available

PATCH New Chen Qi 1 participant 2 messages May 18, 2018

lore
Share & tools
lore
author
#1 lore raw

PATCH v2 1/1 oeqa/sdk/cases/buildgalculator.py: skip if gettext not available

In reply to Chen Qi

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

---
 meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 ++
 1 file changed, 2 insertions(+)
meta/lib/oeqa/sdk/cases/buildgalculator.py +2 -0
index 780afcc..5a5bf99 100644
@@ -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)
Signature · 1 line
1.9.1

Chen Qi

author
#0 lore raw

v2 cover oeqa/sdk/cases/buildgalculator.py: skip if gettext not available

Changes in V2:
* Fix to use hasTargetPackage instead of non-existent hasPrefixedTargetPackage

The following changes since commit 13cc30cd7de4841990b600e83e1249c81a5171dd:

local.conf.sample.extended: Drop obsolete rpc and libnsl (2018-05-15 11:07:50 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/buildgalculator-gettext
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/buildgalculator-gettext

Chen Qi (1):
oeqa/sdk/cases/buildgalculator.py: skip if gettext not available

 meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
1.9.1