aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucian Musat <georgex.l.musat@intel.com>2014-09-04 14:27:24 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-10 15:19:58 +0100
commite0af8a3c751f938faf7deb60b51f42450ae58e27 (patch)
treef12ede9f53c2785dfd50297d34555eca00db93d5
parent0a5353ef42814afea33ce5d69c1fe80e3b3257ba (diff)
downloadopenembedded-core-contrib-e0af8a3c751f938faf7deb60b51f42450ae58e27.tar.gz
openembedded-core-contrib-e0af8a3c751f938faf7deb60b51f42450ae58e27.tar.bz2
openembedded-core-contrib-e0af8a3c751f938faf7deb60b51f42450ae58e27.zip
oeqa: Added package installer to oetest to aid in future automatic install of packages
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/lib/oeqa/oetest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index ed8b3b2ffab..0b7e7dc42d8 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