[OE-core] [PATCH 1/3] oeqa: Added package installer to oetest to aid in future automatic install of packages
Lucian Musat
georgex.l.musat at intel.com
Fri Aug 29 13:51:04 UTC 2014
Signed-off-by: Lucian Musat <georgex.l.musat at intel.com>
---
meta/lib/oeqa/oetest.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index ed8b3b2..0b7e7dc 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -66,6 +66,13 @@ class oeRuntimeTest(oeTest):
self.target = oeRuntimeTest.tc.target
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):
def __init__(self, methodName='runTest'):
self.sdktestdir = oeSDKTest.tc.sdktestdir
--
1.9.1
More information about the Openembedded-core
mailing list