diff options
author | Ross Burton <ross.burton@intel.com> | 2016-06-15 12:01:23 +0100 |
---|---|---|
committer | Sona Sarmadi <sona.sarmadi@enea.com> | 2017-02-10 12:21:38 +0100 |
commit | 5772e2b19d1b0b6e277ade15a3242d583cda90ee (patch) | |
tree | 1c083ec7762c10f0275caa7a1b3a920b87387b10 /meta/lib/oeqa/sdk/buildsudoku.py | |
parent | 2f7efedae16efcb009fb76ecfbc6844701885d06 (diff) | |
download | poky-5772e2b19d1b0b6e277ade15a3242d583cda90ee.tar.gz |
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)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Diffstat (limited to 'meta/lib/oeqa/sdk/buildsudoku.py')
-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 * | |||
3 | from oeqa.utils.targetbuild import SDKBuildProject | 3 | from oeqa.utils.targetbuild import SDKBuildProject |
4 | 4 | ||
5 | def setUpModule(): | 5 | def setUpModule(): |
6 | if not oeSDKTest.hasPackage("gtk\+"): | 6 | if not oeSDKTest.hasPackage("gtk+"): |
7 | skipModule("Image doesn't have gtk+ in manifest") | 7 | skipModule("Image doesn't have gtk+ in manifest") |
8 | 8 | ||
9 | class SudokuTest(oeSDKTest): | 9 | class SudokuTest(oeSDKTest): |