Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] oeqa: Added package installer to oetest to aid in future automatic install of packages
@ 2014-08-29 13:51 Lucian Musat
  2014-08-29 13:51 ` [PATCH 2/3] oeqa/utils/logparser.py: results based log parser utility Lucian Musat
  2014-08-29 13:51 ` [PATCH 3/3] oeqa/runtime: Automatic test for ptest Lucian Musat
  0 siblings, 2 replies; 5+ messages in thread
From: Lucian Musat @ 2014-08-29 13:51 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Lucian Musat <georgex.l.musat@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



^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH 1/3] oeqa: Added package installer to oetest to aid in future automatic install of packages
@ 2014-09-04 11:27 Lucian Musat
  2014-09-04 11:27 ` [PATCH 3/3] oeqa/runtime: Automatic test for ptest Lucian Musat
  0 siblings, 1 reply; 5+ messages in thread
From: Lucian Musat @ 2014-09-04 11:27 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Lucian Musat <georgex.l.musat@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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-04 11:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 13:51 [PATCH 1/3] oeqa: Added package installer to oetest to aid in future automatic install of packages Lucian Musat
2014-08-29 13:51 ` [PATCH 2/3] oeqa/utils/logparser.py: results based log parser utility Lucian Musat
2014-08-29 13:51 ` [PATCH 3/3] oeqa/runtime: Automatic test for ptest Lucian Musat
2014-08-29 15:37   ` Richard Purdie
  -- strict thread matches above, loose matches on Subject: below --
2014-09-04 11:27 [PATCH 1/3] oeqa: Added package installer to oetest to aid in future automatic install of packages Lucian Musat
2014-09-04 11:27 ` [PATCH 3/3] oeqa/runtime: Automatic test for ptest Lucian Musat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox