From c71ea3831a9d40e37f47015cf0d14ab7fd61077d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 15 Jun 2016 12:01:23 +0100 Subject: oeqa: fix hasPackage, add hasPackageMatch hasPackage() was looking for the string provided as an RE substring in the manifest, which resulted in a large number of false positives (i.e. libgtkfoo would match "gtk+"). Rewrite the manifest loader to parse the files into a proper data structure, change hasPackage to do full string matches, and add hasPackageMatch which does RE substring matches. (From OE-Core rev: b9409863af71899e02275439949e3f4cdfaf2d0f) (From OE-Core rev: 990db70dac60541ef14977177fff4361e31c51eb) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- meta/lib/oeqa/sdk/buildsudoku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oeqa/sdk/buildsudoku.py') diff --git a/meta/lib/oeqa/sdk/buildsudoku.py b/meta/lib/oeqa/sdk/buildsudoku.py index dea77c6599..5abbbb867f 100644 --- a/meta/lib/oeqa/sdk/buildsudoku.py +++ b/meta/lib/oeqa/sdk/buildsudoku.py @@ -3,7 +3,7 @@ from oeqa.utils.decorators import * from oeqa.utils.targetbuild import SDKBuildProject def setUpModule(): - if not oeSDKTest.hasPackage("gtk\+"): + if not oeSDKTest.hasPackage("gtk+"): skipModule("Image doesn't have gtk+ in manifest") class SudokuTest(oeSDKTest): -- cgit v1.2.3-54-g00ecf