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:26:14 +0100 |
commit | 675843d540f30058269789b2c6808a206ab04a04 (patch) | |
tree | 85383a91e26ddebb9dc3bcd8b4c63d47dc3bf5c5 /meta/lib/oeqa/runtime/python.py | |
parent | c65cf8ede2116ef1fa3ddeb617e7c39caacff941 (diff) | |
download | poky-675843d540f30058269789b2c6808a206ab04a04.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>
Diffstat (limited to 'meta/lib/oeqa/runtime/python.py')
-rw-r--r-- | meta/lib/oeqa/runtime/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/python.py b/meta/lib/oeqa/runtime/python.py index 26edb7a9b8..29a231c7c3 100644 --- a/meta/lib/oeqa/runtime/python.py +++ b/meta/lib/oeqa/runtime/python.py | |||
@@ -4,7 +4,7 @@ from oeqa.oetest import oeRuntimeTest, skipModule | |||
4 | from oeqa.utils.decorators import * | 4 | from oeqa.utils.decorators import * |
5 | 5 | ||
6 | def setUpModule(): | 6 | def setUpModule(): |
7 | if not oeRuntimeTest.hasPackage("python"): | 7 | if not oeRuntimeTest.hasPackage("python-core"): |
8 | skipModule("No python package in the image") | 8 | skipModule("No python package in the image") |
9 | 9 | ||
10 | 10 | ||