[oe-commits] [openembedded-core] 14/17: oeqa/core/decorator: Fix super class modifying subclass tags
git at git.openembedded.org
git at git.openembedded.org
Sat Sep 7 20:57:59 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit ba35bead1108c7d8480b785b2e59f40ea77b5549
Author: Nathan Rossi <nathan at nathanrossi.com>
AuthorDate: Sat Sep 7 12:55:06 2019 +0000
oeqa/core/decorator: Fix super class modifying subclass tags
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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 1a5ac40..1a82518 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list