[OE-core] [PATCH 5/7] oeqa/core/decorator: Fix super class modifying subclass tags
Nathan Rossi
nathan at nathanrossi.com
Sat Sep 7 12:55:06 UTC 2019
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
meta/lib/oeqa/core/decorator/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py
index 1a5ac40134..1a82518ab6 100644
--- a/meta/lib/oeqa/core/decorator/__init__.py
+++ b/meta/lib/oeqa/core/decorator/__init__.py
@@ -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
---
2.23.0.rc1
More information about the Openembedded-core
mailing list