Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 |