]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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:56:43 +0000 (21:56 +0100)
commitc3625e141dfbb6c8b8bfa3ff05e0e87f215bf606
tree5c2e6dbfea3d050d7929234c4a880e923795a066
parent1220faf6659e404f6aa2c3155eb8840ac361c2b2
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.

(From OE-Core rev: b8a4a4c2de68110d74607cb9807c9e741ca9441c)

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