oeqa/core/decorator: Fix super class modifying subclass tags

(From OE-Core rev: ba35bead1108c7d8480b785b2e59f40ea77b5549)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Nathan Rossi
2019-09-07 12:55:06 +00:00
committed by Richard Purdie
parent 405d98e2bd
commit dcb84e42e5

View File

@@ -70,7 +70,8 @@ def OETestTag(*tags):
expandedtags += strToList(tag)
def decorator(item):
if hasattr(item, "__oeqa_testtags"):
item.__oeqa_testtags += expandedtags
# do not append, create a new list (to handle classes with inheritance)
item.__oeqa_testtags = list(item.__oeqa_testtags) + expandedtags
else:
item.__oeqa_testtags = expandedtags
return item