diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-29 11:54:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:25:04 +0000 |
commit | fca18914013b2f05b36e6985a7ff4a7c8dddf8a5 (patch) | |
tree | 188681275dc4521a804fc5ced9a2fe91e75007e3 | |
parent | 828db9026c61d0a6ad12b8e05929eef31abfd57d (diff) | |
download | openembedded-core-fca18914013b2f05b36e6985a7ff4a7c8dddf8a5.tar.gz openembedded-core-fca18914013b2f05b36e6985a7ff4a7c8dddf8a5.tar.bz2 openembedded-core-fca18914013b2f05b36e6985a7ff4a7c8dddf8a5.zip |
oeqa/runtime/ptest: Avoid traceback for tests with no section
Some tests end up without a section, avoid tracebacks trying to use
None as a string in that case.
(From OE-Core rev: 86fb5d898a29761f120c2eaa538a32cf2e078487)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ptest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ptest.py b/meta/lib/oeqa/runtime/cases/ptest.py index 0972a583ee..7d8849308d 100644 --- a/meta/lib/oeqa/runtime/cases/ptest.py +++ b/meta/lib/oeqa/runtime/cases/ptest.py @@ -99,7 +99,7 @@ class PtestRunnerTest(OERuntimeTestCase): resmap = {'pass': 'PASSED', 'skip': 'SKIPPED', 'fail': 'FAILED'} for section in parse_result.result_dict: for test, result in parse_result.result_dict[section]: - testname = "ptestresult." + section + "." + "_".join(test.translate(trans).split()) + testname = "ptestresult." + (section or "No-section") + "." + "_".join(test.translate(trans).split()) extras[testname] = {'status': resmap[result]} failed_tests = {} |