[OE-core] [PATCH] oequa/runtime: Added check for ptest-runner to see if it ran correctly
Musat, George L
george.l.musat at intel.com
Wed Nov 19 07:49:07 UTC 2014
And modified condition to install complementary packages.
Signed-off-by: Lucian Musat <george.l.musat at intel.com<mailto:george.l.musat at intel.com>>
---
meta/lib/oeqa/runtime/_ptest.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oeqa/runtime/_ptest.py b/meta/lib/oeqa/runtime/_ptest.py index 4c58dc1..76b6e2b 100644
--- a/meta/lib/oeqa/runtime/_ptest.py
+++ b/meta/lib/oeqa/runtime/_ptest.py
@@ -106,12 +106,16 @@ class PtestRunnerTest(oeRuntimeTest):
@skipUnlessPassed('test_ssh')
def test_ptestrunner(self):
self.add_smart_channel()
- cond = oeRuntimeTest.hasPackage("ptest-runner") and oeRuntimeTest.hasFeature("ptest") and oeRuntimeTest.hasPackage("-ptest")
- if not cond:
+ #cond = oeRuntimeTest.hasPackage("ptest-runner") and oeRuntimeTest.hasFeature("ptest") and oeRuntimeTest.hasPackage("-ptest")
+ #if not cond:
+ (status, result) = self.target.run('smart query ptest-runner', 0)
+ if (status != 0):
self.install_packages(self.install_complementary("*-ptest"))
self.install_packages(['ptest-runner'])
- self.target.run('/usr/bin/ptest-runner > /tmp/ptest.log 2>&1', 0)
+ (status, result) = self.target.run('/usr/bin/ptest-runner > /tmp/ptest.log 2>&1', 0)
+ self.assertEqual(status, 0 , msg="Ptest-Runner failed to run!")
+
self.target.copy_from('/tmp/ptest.log', self.ptest_log)
shutil.copyfile(self.ptest_log, os.path.join(self.buildhist_dir, "ptest.log"))
--
1.9.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20141119/5acfb4e4/attachment-0002.html>
More information about the Openembedded-core
mailing list