summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/case.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-01-13 10:47:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:20 +0000
commit58789be270c903bf75c1946a4c626b37a5bcdc72 (patch)
treedb84f05a6ab1fdeac5cdd1224558216e562f35d6 /meta/lib/oeqa/runtime/case.py
parentf8d7db1905902c048d22c86ecddd1be98419bbaf (diff)
downloadpoky-58789be270c903bf75c1946a4c626b37a5bcdc72.tar.gz
testimage.bbclass: Add package install feature
This allows to use the package install feature with the new OEQA framework. [YOCTO #10234] (From OE-Core rev: 077dc19445574457769eb4f231de97e8059cb75e) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/case.py')
-rw-r--r--meta/lib/oeqa/runtime/case.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/case.py b/meta/lib/oeqa/runtime/case.py
index 43f1b2f425..c1485c9860 100644
--- a/meta/lib/oeqa/runtime/case.py
+++ b/meta/lib/oeqa/runtime/case.py
@@ -2,7 +2,16 @@
2# Released under the MIT license (see COPYING.MIT) 2# Released under the MIT license (see COPYING.MIT)
3 3
4from oeqa.core.case import OETestCase 4from oeqa.core.case import OETestCase
5from oeqa.utils.package_manager import install_package, uninstall_package
5 6
6class OERuntimeTestCase(OETestCase): 7class OERuntimeTestCase(OETestCase):
7 # target instance set by OERuntimeTestLoader. 8 # target instance set by OERuntimeTestLoader.
8 target = None 9 target = None
10
11 def _oeSetUp(self):
12 super(OERuntimeTestCase, self)._oeSetUp()
13 install_package(self)
14
15 def _oeTearDown(self):
16 super(OERuntimeTestCase, self)._oeTearDown()
17 uninstall_package(self)