diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2017-01-13 10:47:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:20 +0000 |
commit | 58789be270c903bf75c1946a4c626b37a5bcdc72 (patch) | |
tree | db84f05a6ab1fdeac5cdd1224558216e562f35d6 /meta/lib/oeqa/runtime/case.py | |
parent | f8d7db1905902c048d22c86ecddd1be98419bbaf (diff) | |
download | poky-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.py | 9 |
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 | ||
4 | from oeqa.core.case import OETestCase | 4 | from oeqa.core.case import OETestCase |
5 | from oeqa.utils.package_manager import install_package, uninstall_package | ||
5 | 6 | ||
6 | class OERuntimeTestCase(OETestCase): | 7 | class 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) | ||