summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorCostin Constantin <costin.c.constantin@intel.com>2015-08-21 14:37:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-26 08:28:06 +0100
commit393bd7496d71eb101f21234c1233a2d18fd2c73e (patch)
treecde52745d54a2425f600026d2641a82e5bcf204f /meta/lib/oeqa
parent315fb4c9e275dcaeab325b9c7647ffe2d262949e (diff)
downloadpoky-393bd7496d71eb101f21234c1233a2d18fd2c73e.tar.gz
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] (From OE-Core rev: f07045fcae859c902434062d1725f1348f42d1dd) 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.py6
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):
99 99
100 @classmethod 100 @classmethod
101 def hasPackage(self, pkg): 101 def hasPackage(self, pkg):
102 102 for item in oeTest.tc.pkgmanifest.split('\n'):
103 if re.search(pkg, oeTest.tc.pkgmanifest): 103 if re.match(pkg, item):
104 return True 104 return True
105 return False 105 return False
106 106
107 @classmethod 107 @classmethod