]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa: Added package installer to oetest to aid in future automatic install of packages
authorLucian Musat <georgex.l.musat@intel.com>
Thu, 4 Sep 2014 11:27:24 +0000 (14:27 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Sep 2014 14:19:58 +0000 (15:19 +0100)
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/oetest.py

index ed8b3b2ffab77e62f6443991a2517db1ca5967aa..0b7e7dc42d84d9e5486331277da05199880b00ec 100644 (file)
@@ -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