diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-01-08 14:27:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-10 21:18:21 +0000 |
commit | 544cad3791c0cab59163fc662641ba263ea8c311 (patch) | |
tree | a6c916823c4a2a58f14fc7dadb359db59e57bf72 /meta/lib/oeqa/runtime | |
parent | b0ec81732a251aae397d195d30867266e8dc462e (diff) | |
download | poky-544cad3791c0cab59163fc662641ba263ea8c311.tar.gz |
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.
(From OE-Core rev: 4b78b6571a3653d7d8e9dab9512bad5d39483988)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ptest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py index aef79f62a9..eb284df439 100644 --- a/meta/lib/oeqa/runtime/cases/ptest.py +++ b/meta/lib/oeqa/runtime/cases/ptest.py | |||
@@ -67,6 +67,11 @@ class PtestRunnerTest(OERuntimeTestCase): | |||
67 | extras[testname] = {'status': result} | 67 | extras[testname] = {'status': result} |
68 | 68 | ||
69 | failed_tests = {} | 69 | failed_tests = {} |
70 | |||
71 | for section in sections: | ||
72 | if 'exitcode' in sections[section].keys(): | ||
73 | failed_tests[section] = sections[section]["log"] | ||
74 | |||
70 | for section in results: | 75 | for section in results: |
71 | failed_testcases = [ "_".join(test.translate(trans).split()) for test in results[section] if results[section][test] == 'FAILED' ] | 76 | failed_testcases = [ "_".join(test.translate(trans).split()) for test in results[section] if results[section][test] == 'FAILED' ] |
72 | if failed_testcases: | 77 | if failed_testcases: |