summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/decorator/oetag.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/core/decorator/oetag.py')
-rw-r--r--meta/lib/oeqa/core/decorator/oetag.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/meta/lib/oeqa/core/decorator/oetag.py b/meta/lib/oeqa/core/decorator/oetag.py
deleted file mode 100644
index 8c31138dac..0000000000
--- a/meta/lib/oeqa/core/decorator/oetag.py
+++ /dev/null
@@ -1,27 +0,0 @@
1#
2# Copyright (C) 2016 Intel Corporation
3#
4# SPDX-License-Identifier: MIT
5#
6
7from . import OETestFilter, registerDecorator
8from oeqa.core.utils.misc import strToList
9
10def _tagFilter(tags, filters):
11 return False if set(tags) & set(filters) else True
12
13@registerDecorator
14class OETestTag(OETestFilter):
15 attrs = ('oetag',)
16
17 def bind(self, registry, case):
18 super(OETestTag, self).bind(registry, case)
19 self.oetag = strToList(self.oetag, 'oetag')
20
21 def filtrate(self, filters):
22 if filters.get('oetag'):
23 filterx = strToList(filters['oetag'], 'oetag')
24 del filters['oetag']
25 if _tagFilter(self.oetag, filterx):
26 return True
27 return False