xref: /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/runtime/case.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.case import OETestCase
8*4882a593Smuzhiyunfrom oeqa.utils.package_manager import install_package, uninstall_package
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunclass OERuntimeTestCase(OETestCase):
11*4882a593Smuzhiyun    # target instance set by OERuntimeTestLoader.
12*4882a593Smuzhiyun    target = None
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun    def setUp(self):
15*4882a593Smuzhiyun        super(OERuntimeTestCase, self).setUp()
16*4882a593Smuzhiyun        install_package(self)
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun    def tearDown(self):
19*4882a593Smuzhiyun        super(OERuntimeTestCase, self).tearDown()
20*4882a593Smuzhiyun        uninstall_package(self)
21