summaryrefslogtreecommitdiffstats
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:56:43 +0100
commitdcb84e42e51f9c7906435eef637d0010336ce6a5 (patch)
tree99515c56767e075b14346a61573baec9ec5feb6f
parent405d98e2bd96a6fbd16df075f9b74a10c2d88eb3 (diff)
downloadpoky-dcb84e42e51f9c7906435eef637d0010336ce6a5.tar.gz
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>
-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):
70 expandedtags += strToList(tag) 70 expandedtags += strToList(tag)
71 def decorator(item): 71 def decorator(item):
72 if hasattr(item, "__oeqa_testtags"): 72 if hasattr(item, "__oeqa_testtags"):
73 item.__oeqa_testtags += expandedtags 73 # do not append, create a new list (to handle classes with inheritance)
74 item.__oeqa_testtags = list(item.__oeqa_testtags) + expandedtags
74 else: 75 else:
75 item.__oeqa_testtags = expandedtags 76 item.__oeqa_testtags = expandedtags
76 return item 77 return item