mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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:
committed by
Richard Purdie
parent
405d98e2bd
commit
dcb84e42e5
@@ -70,7 +70,8 @@ def OETestTag(*tags):
|
|||||||
expandedtags += strToList(tag)
|
expandedtags += strToList(tag)
|
||||||
def decorator(item):
|
def decorator(item):
|
||||||
if hasattr(item, "__oeqa_testtags"):
|
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:
|
else:
|
||||||
item.__oeqa_testtags = expandedtags
|
item.__oeqa_testtags = expandedtags
|
||||||
return item
|
return item
|
||||||
|
|||||||
Reference in New Issue
Block a user