]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/decorator: Fix super class modifying subclass tags
authorNathan Rossi <nathan@nathanrossi.com>
Sat, 7 Sep 2019 12:55:06 +0000 (12:55 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Sep 2019 20:52:27 +0000 (21:52 +0100)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/decorator/__init__.py

index 1a5ac40134d3e41b8347c916b9d54a72414b730f..1a82518ab6a22c20b9f7a6b8956f7e7e21ab4b3c 100644 (file)
@@ -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