1#
2# Copyright (C) 2016 Intel Corporation
3#
4# SPDX-License-Identifier: MIT
5#
6
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
20