diff options
| author | Lucian Musat <georgex.l.musat@intel.com> | 2014-09-04 14:27:24 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-10 15:38:56 +0100 |
| commit | 1f5186efbfc5de89cd3a543c711badb7095b69f1 (patch) | |
| tree | 9972fba183206466ef8897bce68a5ca231edbb4f | |
| parent | 7a497b8315ff5d87474fa2b502d2d5121dfca39c (diff) | |
| download | poky-1f5186efbfc5de89cd3a543c711badb7095b69f1.tar.gz | |
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>
| -rw-r--r-- | meta/lib/oeqa/oetest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index ed8b3b2ffa..0b7e7dc42d 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py | |||
| @@ -66,6 +66,13 @@ class oeRuntimeTest(oeTest): | |||
| 66 | self.target = oeRuntimeTest.tc.target | 66 | self.target = oeRuntimeTest.tc.target |
| 67 | super(oeRuntimeTest, self).__init__(methodName) | 67 | super(oeRuntimeTest, self).__init__(methodName) |
| 68 | 68 | ||
| 69 | #TODO: use package_manager.py to install packages on any type of image | ||
| 70 | def install_packages(self, packagelist): | ||
| 71 | for package in packagelist: | ||
| 72 | (status, result) = self.target.run("smart install -y "+package) | ||
| 73 | if status != 0: | ||
| 74 | return status | ||
| 75 | |||
| 69 | class oeSDKTest(oeTest): | 76 | class oeSDKTest(oeTest): |
| 70 | def __init__(self, methodName='runTest'): | 77 | def __init__(self, methodName='runTest'): |
| 71 | self.sdktestdir = oeSDKTest.tc.sdktestdir | 78 | self.sdktestdir = oeSDKTest.tc.sdktestdir |
