mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
The OEQA framework has internal methods for provide functionality in decorators so Test components aren't expected to override it. Use the base unittest methods for setUp and tearDown. (From OE-Core rev: 21df9f0f6d6272adc6131cdc113000a5e6ac9d46) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
515 B
Python
18 lines
515 B
Python
# Copyright (C) 2016 Intel Corporation
|
|
# Released under the MIT license (see COPYING.MIT)
|
|
|
|
from oeqa.core.case import OETestCase
|
|
from oeqa.utils.package_manager import install_package, uninstall_package
|
|
|
|
class OERuntimeTestCase(OETestCase):
|
|
# target instance set by OERuntimeTestLoader.
|
|
target = None
|
|
|
|
def setUp(self):
|
|
super(OERuntimeTestCase, self).setUp()
|
|
install_package(self)
|
|
|
|
def tearDown(self):
|
|
super(OERuntimeTestCase, self).tearDown()
|
|
uninstall_package(self)
|