mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
oeqa: Added package installer to oetest to aid in future automatic install of packages
(From OE-Core rev: e0af8a3c751f938faf7deb60b51f42450ae58e27) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7a497b8315
commit
1f5186efbf
@@ -66,6 +66,13 @@ class oeRuntimeTest(oeTest):
|
|||||||
self.target = oeRuntimeTest.tc.target
|
self.target = oeRuntimeTest.tc.target
|
||||||
super(oeRuntimeTest, self).__init__(methodName)
|
super(oeRuntimeTest, self).__init__(methodName)
|
||||||
|
|
||||||
|
#TODO: use package_manager.py to install packages on any type of image
|
||||||
|
def install_packages(self, packagelist):
|
||||||
|
for package in packagelist:
|
||||||
|
(status, result) = self.target.run("smart install -y "+package)
|
||||||
|
if status != 0:
|
||||||
|
return status
|
||||||
|
|
||||||
class oeSDKTest(oeTest):
|
class oeSDKTest(oeTest):
|
||||||
def __init__(self, methodName='runTest'):
|
def __init__(self, methodName='runTest'):
|
||||||
self.sdktestdir = oeSDKTest.tc.sdktestdir
|
self.sdktestdir = oeSDKTest.tc.sdktestdir
|
||||||
|
|||||||
Reference in New Issue
Block a user