diff options
author | Costin Constantin <costin.c.constantin@intel.com> | 2015-08-21 14:37:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-26 08:26:37 +0100 |
commit | f07045fcae859c902434062d1725f1348f42d1dd (patch) | |
tree | 90d3a50673c60a51530d51231e5b2c8be7df5d47 /meta/lib/oeqa | |
parent | 2f5cbfee0ab1189fbb83f0e785d79c8d123fccc2 (diff) | |
download | openembedded-core-f07045fcae859c902434062d1725f1348f42d1dd.tar.gz openembedded-core-f07045fcae859c902434062d1725f1348f42d1dd.tar.bz2 openembedded-core-f07045fcae859c902434062d1725f1348f42d1dd.zip |
oeqa/oetest.py: add better package search for hasPackage()
Modified hasPackage() to split the content of pacakage manifest file
in containing lines and search at the begining of each line the
existance of the needed pkg.
[YOCTO #8170]
Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index dfed3dea87..b6d2a2ca64 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py @@ -99,9 +99,9 @@ class oeTest(unittest.TestCase): @classmethod def hasPackage(self, pkg): - - if re.search(pkg, oeTest.tc.pkgmanifest): - return True + for item in oeTest.tc.pkgmanifest.split('\n'): + if re.match(pkg, item): + return True return False @classmethod |