diff options
author | Ross Burton <ross.burton@intel.com> | 2016-06-15 12:01:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-23 14:21:25 +0100 |
commit | b9409863af71899e02275439949e3f4cdfaf2d0f (patch) | |
tree | 77b9f1bcd1dc88bc0a172d3e9c130e5ee4f148c3 /meta/lib/oeqa/sdk | |
parent | bb5a43f049c1a7cffb5516b1c3d0264dea68ea3f (diff) | |
download | openembedded-core-b9409863af71899e02275439949e3f4cdfaf2d0f.tar.gz openembedded-core-b9409863af71899e02275439949e3f4cdfaf2d0f.tar.bz2 openembedded-core-b9409863af71899e02275439949e3f4cdfaf2d0f.zip |
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.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r-- | meta/lib/oeqa/sdk/buildsudoku.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |