summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-06-01 13:03:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-04 15:15:00 +0100
commit93bbc30fb9063d830619cc3d23b1d3755fd1dafa (patch)
tree6f52a69a3883c5eb4bd24b8f6cf4da960f6ed545
parenta233b59fb0b86b3225425b2a45bd4b2ce6d27c22 (diff)
downloadpoky-93bbc30fb9063d830619cc3d23b1d3755fd1dafa.tar.gz
oeqa/core/decorator/__init__.py: use 'cls' instead of 'obj'
Use 'cls' instead of 'obj' to better reflect that registerDecorator actually serves as a class decorator. (From OE-Core rev: e06e4c859e8be5225d80806a2ebe175f0b152fe1) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/core/decorator/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py
index 6ca0acf353..14d7bfcd35 100644
--- a/meta/lib/oeqa/core/decorator/__init__.py
+++ b/meta/lib/oeqa/core/decorator/__init__.py
@@ -6,9 +6,9 @@ from abc import abstractmethod, ABCMeta
6 6
7decoratorClasses = set() 7decoratorClasses = set()
8 8
9def registerDecorator(obj): 9def registerDecorator(cls):
10 decoratorClasses.add(obj) 10 decoratorClasses.add(cls)
11 return obj 11 return cls
12 12
13class OETestDecorator(object, metaclass=ABCMeta): 13class OETestDecorator(object, metaclass=ABCMeta):
14 case = None # Reference of OETestCase decorated 14 case = None # Reference of OETestCase decorated