diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-06-01 13:03:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-02 11:41:25 +0100 |
commit | 398aaf26aaeeaa5c911bd8f70114848257230527 (patch) | |
tree | 9169596d85c91d35fec52cf897bec6436d71c088 | |
parent | c0f6a11b2125017c1d35067e76422152cc7bded0 (diff) | |
download | poky-398aaf26aaeeaa5c911bd8f70114848257230527.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)
(From OE-Core rev: 9daf742004f4256bcb429165cfbf8dfc735a9686)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/core/decorator/__init__.py | 6 |
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 | ||
7 | decoratorClasses = set() | 7 | decoratorClasses = set() |
8 | 8 | ||
9 | def registerDecorator(obj): | 9 | def registerDecorator(cls): |
10 | decoratorClasses.add(obj) | 10 | decoratorClasses.add(cls) |
11 | return obj | 11 | return cls |
12 | 12 | ||
13 | class OETestDecorator(object, metaclass=ABCMeta): | 13 | class OETestDecorator(object, metaclass=ABCMeta): |
14 | case = None # Reference of OETestCase decorated | 14 | case = None # Reference of OETestCase decorated |