]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core: Rework OETestTag and remove unused OETestFilter
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 3 Sep 2019 16:56:41 +0000 (16:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Sep 2019 20:47:35 +0000 (21:47 +0100)
commitb8a4a4c2de68110d74607cb9807c9e741ca9441c
tree3651d11029d27d2a4c83de66be05f4ad213a2b69
parentb0831d43606415807af80e2aa1d0566d0b8c209c
oeqa/core: Rework OETestTag and remove unused OETestFilter

Rework OETestTag so that it does not rely on the existing decorator code
base and instead inserts the tags into an attribute on the decorated
target (e.g. class/type or method). This allows the use of OETestTag on
classes and method.

In order to filter tagged tests rework the loaders filtering code,
removing the generic-ness (with validation and attributes/etc.) and
replace it with a "tags_filter" parameter which is a function that
filters a test based on the tags it has. This allows the loader user to
filter on tags in more specific ways (e.g. include all untagged tests
and any tests tagged with foo). Plumb all this through the context code
and testing code.

Update the associated tests to pass correctly with the changes.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/context.py
meta/lib/oeqa/core/decorator/__init__.py
meta/lib/oeqa/core/decorator/oetag.py [deleted file]
meta/lib/oeqa/core/loader.py
meta/lib/oeqa/core/tests/cases/data.py
meta/lib/oeqa/core/tests/cases/oetag.py
meta/lib/oeqa/core/tests/common.py
meta/lib/oeqa/core/tests/test_decorators.py
meta/lib/oeqa/core/tests/test_loader.py