diff options
Diffstat (limited to 'meta/lib/oeqa/core/decorator/oeid.py')
-rw-r--r-- | meta/lib/oeqa/core/decorator/oeid.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/meta/lib/oeqa/core/decorator/oeid.py b/meta/lib/oeqa/core/decorator/oeid.py deleted file mode 100644 index ea8017a55a..0000000000 --- a/meta/lib/oeqa/core/decorator/oeid.py +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # Copyright (C) 2016 Intel Corporation | ||
2 | # Released under the MIT license (see COPYING.MIT) | ||
3 | |||
4 | from . import OETestFilter, registerDecorator | ||
5 | from oeqa.core.utils.misc import intToList | ||
6 | |||
7 | def _idFilter(oeid, filters): | ||
8 | return False if oeid in filters else True | ||
9 | |||
10 | @registerDecorator | ||
11 | class OETestID(OETestFilter): | ||
12 | attrs = ('oeid',) | ||
13 | |||
14 | def bind(self, registry, case): | ||
15 | super(OETestID, self).bind(registry, case) | ||
16 | |||
17 | def filtrate(self, filters): | ||
18 | if filters.get('oeid'): | ||
19 | filterx = intToList(filters['oeid'], 'oeid') | ||
20 | del filters['oeid'] | ||
21 | if _idFilter(self.oeid, filterx): | ||
22 | return True | ||
23 | return False | ||