diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/loader.py')
-rw-r--r-- | meta/lib/oeqa/runtime/loader.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/loader.py b/meta/lib/oeqa/runtime/loader.py new file mode 100644 index 0000000000..041ef976eb --- /dev/null +++ b/meta/lib/oeqa/runtime/loader.py | |||
@@ -0,0 +1,16 @@ | |||
1 | # Copyright (C) 2016 Intel Corporation | ||
2 | # Released under the MIT license (see COPYING.MIT) | ||
3 | |||
4 | from oeqa.core.loader import OETestLoader | ||
5 | from oeqa.runtime.case import OERuntimeTestCase | ||
6 | |||
7 | class OERuntimeTestLoader(OETestLoader): | ||
8 | caseClass = OERuntimeTestCase | ||
9 | |||
10 | def _getTestCase(self, testCaseClass, tcName): | ||
11 | case = super(OERuntimeTestLoader, self)._getTestCase(testCaseClass, tcName) | ||
12 | |||
13 | # Adds custom attributes to the OERuntimeTestCase | ||
14 | setattr(case, 'target', self.tc.target) | ||
15 | |||
16 | return case | ||