Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | # Copyright (C) 2016 Intel Corporation |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | |
| 7 | from oeqa.core.loader import OETestLoader |
| 8 | from oeqa.runtime.case import OERuntimeTestCase |
| 9 | |
| 10 | class OERuntimeTestLoader(OETestLoader): |
| 11 | caseClass = OERuntimeTestCase |
| 12 | |
| 13 | def _getTestCase(self, testCaseClass, tcName): |
| 14 | case = super(OERuntimeTestLoader, self)._getTestCase(testCaseClass, tcName) |
| 15 | |
| 16 | # Adds custom attributes to the OERuntimeTestCase |
| 17 | setattr(case, 'target', self.tc.target) |
| 18 | |
| 19 | return case |