]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/sdk/cases: Fix skip of buildgcalculator test
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 9 Jun 2017 17:01:28 +0000 (12:01 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Jun 2017 14:21:32 +0000 (15:21 +0100)
The tc.hasTargetPackage uses a re.search to see if gtk+3 is on
the manifest but + in regex means 1 or more causing the test
to be skipped.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdk/cases/buildgalculator.py

index 42e8ddb185cec3d13b369bc227c3d2a6c45cef3f..780afccc744137423d1599e500768420525d64c0 100644 (file)
@@ -8,7 +8,7 @@ class GalculatorTest(OESDKTestCase):
 
     @classmethod
     def setUpClass(self):
-        if not (self.tc.hasTargetPackage("gtk+3") or\
+        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")