mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
sdk/buldgalculator.py: check against multilib for gtk+3
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 (From OE-Core rev: ce82ee46f4a7beb5663238b276e779e5c9657777) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user