mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
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) (From OE-Core rev: fca18914013b2f05b36e6985a7ff4a7c8dddf8a5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user