[oe-commits] [openembedded-core] 06/42: ptest: report ptests that couldn't be run at all

git at git.openembedded.org git at git.openembedded.org
Wed Jan 8 21:23:58 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a8036e0f7d0fad2b4d189131199c2c1240e98438
Author: Alexander Kanavin <alex.kanavin at gmail.com>
AuthorDate: Wed Jan 8 14:27:51 2020 +0100

    ptest: report ptests that couldn't be run at all
    
    Currently if a ptest does not produce PASS or FAIL, but simply
    errors out, this is not caught or reported; I think some ptests
    may have silently regressed due to this.
    
    Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/runtime/cases/ptest.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py
index aef79f6..eb284df 100644
--- a/meta/lib/oeqa/runtime/cases/ptest.py
+++ b/meta/lib/oeqa/runtime/cases/ptest.py
@@ -67,6 +67,11 @@ class PtestRunnerTest(OERuntimeTestCase):
                 extras[testname] = {'status': result}
 
         failed_tests = {}
+
+        for section in sections:
+            if 'exitcode' in sections[section].keys():
+                failed_tests[section] = sections[section]["log"]
+
         for section in results:
             failed_testcases = [ "_".join(test.translate(trans).split()) for test in results[section] if results[section][test] == 'FAILED' ]
             if failed_testcases:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list