]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: fix hasPackage, add hasPackageMatch
authorRoss Burton <ross.burton@intel.com>
Wed, 15 Jun 2016 11:01:23 +0000 (12:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jun 2016 13:21:25 +0000 (14:21 +0100)
commitb9409863af71899e02275439949e3f4cdfaf2d0f
tree77b9f1bcd1dc88bc0a172d3e9c130e5ee4f148c3
parentbb5a43f049c1a7cffb5516b1c3d0264dea68ea3f
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>
meta/lib/oeqa/oetest.py
meta/lib/oeqa/runtime/_ptest.py
meta/lib/oeqa/runtime/python.py
meta/lib/oeqa/runtime/smart.py
meta/lib/oeqa/sdk/buildsudoku.py