From: Nathan Rossi Date: Sat, 7 Sep 2019 12:55:06 +0000 (+0000) Subject: oeqa/core/decorator: Fix super class modifying subclass tags X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcb84e42e51f9c7906435eef637d0010336ce6a5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/core/decorator: Fix super class modifying subclass tags (From OE-Core rev: ba35bead1108c7d8480b785b2e59f40ea77b5549) Signed-off-by: Nathan Rossi Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py index 1a5ac40134d..1a82518ab6a 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