]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/core/decorators/data: improve has_* logic
authorRoss Burton <ross@burtonini.com>
Thu, 31 Mar 2022 18:29:07 +0000 (19:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Apr 2022 22:05:31 +0000 (23:05 +0100)
commita4c63819234e252c58e040af8bbdbfb96b6feccf
tree0004cfa0060b1a5f188e39a65cfa70ff8b08613b
parent7ef7b03eeefc0a9911fd62c73e346fa5aeeb09eb
oeqa/core/decorators/data: improve has_* logic

has_feature() should be splitting the feature string into substrings and
then looking for membership instead of looking for simple substrings.

has_machine() should be using equality instead of substrings.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/core/decorator/data.py