mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02: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)
|