xref: /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/runtime/loader.py (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#
2*4882a593Smuzhiyun# Copyright (C) 2016 Intel Corporation
3*4882a593Smuzhiyun#
4*4882a593Smuzhiyun# SPDX-License-Identifier: MIT
5*4882a593Smuzhiyun#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunfrom oeqa.core.loader import OETestLoader
8*4882a593Smuzhiyunfrom oeqa.runtime.case import OERuntimeTestCase
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunclass OERuntimeTestLoader(OETestLoader):
11*4882a593Smuzhiyun    caseClass = OERuntimeTestCase
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun    def _getTestCase(self, testCaseClass, tcName):
14*4882a593Smuzhiyun        case = super(OERuntimeTestLoader, self)._getTestCase(testCaseClass, tcName)
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun        # Adds custom attributes to the OERuntimeTestCase
17*4882a593Smuzhiyun        setattr(case, 'target', self.tc.target)
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun        return case
20