]> code.ossystems Code Review - openembedded-core.git/commitdiff
sdk/buldgalculator.py: check against multilib for gtk+3
authorChen Qi <Qi.Chen@windriver.com>
Wed, 29 Aug 2018 02:56:30 +0000 (10:56 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Aug 2018 15:16:06 +0000 (16:16 +0100)
When determining whether to skip the test case, the check should be
done with consideration of multilib. Otherwise, we will meet the
following error when testing against lib32 environment.

  No package 'gtk+-3.0' found

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdk/cases/buildgalculator.py

index 4c02ea4c51d78ba1d585930a4a2c71de58046665..3714825b06c0717128c277297efe7a0d8be1de02 100644 (file)
@@ -8,8 +8,8 @@ class GalculatorTest(OESDKTestCase):
 
     @classmethod
     def setUpClass(self):
-        if not (self.tc.hasTargetPackage(r"gtk\+3") or\
-                self.tc.hasTargetPackage(r"libgtk-3.0")):
+        if not (self.tc.hasTargetPackage(r"gtk\+3", multilib=True) or\
+                self.tc.hasTargetPackage(r"libgtk-3.0", multilib=True)):
             raise unittest.SkipTest("GalculatorTest class: SDK don't support gtk+3")
         if not (self.tc.hasHostPackage("nativesdk-gettext-dev")):
             raise unittest.SkipTest("GalculatorTest class: SDK doesn't contain gettext")