blob: 7041ddfde82e5fdc22fe37f6b995e7a282268ef7 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002# Copyright (C) 2016 Intel Corporation
Brad Bishopc342db32019-05-15 21:57:59 -04003#
4# SPDX-License-Identifier: MIT
5#
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006
7from oeqa.core.loader import OETestLoader
8from oeqa.runtime.case import OERuntimeTestCase
9
10class 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