aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-09-07 12:55:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-07 21:52:27 +0100
commitba35bead1108c7d8480b785b2e59f40ea77b5549 (patch)
treeb057b24e10d33307fab6f80db91cffa484714c92
parent55ee27bb07113a45da18711b5509764f62be4d75 (diff)
downloadopenembedded-core-contrib-ba35bead1108c7d8480b785b2e59f40ea77b5549.tar.gz
openembedded-core-contrib-ba35bead1108c7d8480b785b2e59f40ea77b5549.tar.bz2
openembedded-core-contrib-ba35bead1108c7d8480b785b2e59f40ea77b5549.zip
oeqa/core/decorator: Fix super class modifying subclass tags
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/decorator/__init__.py3
1 files changed, 2 insertions, 1 deletions
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