summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-29 11:54:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-31 23:23:26 +0000
commitfa2db6a72a11bc541d1e1698394dc1fe2d319eb9 (patch)
treea02a56a79652d1d3899d9987470bf95696fe35fb /meta/lib
parenta7774aced031de1c8e42d0559182e802df8bcaa8 (diff)
downloadpoky-fa2db6a72a11bc541d1e1698394dc1fe2d319eb9.tar.gz
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>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/cases/ptest.py2
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):
99 resmap = {'pass': 'PASSED', 'skip': 'SKIPPED', 'fail': 'FAILED'} 99 resmap = {'pass': 'PASSED', 'skip': 'SKIPPED', 'fail': 'FAILED'}
100 for section in parse_result.result_dict: 100 for section in parse_result.result_dict:
101 for test, result in parse_result.result_dict[section]: 101 for test, result in parse_result.result_dict[section]:
102 testname = "ptestresult." + section + "." + "_".join(test.translate(trans).split()) 102 testname = "ptestresult." + (section or "No-section") + "." + "_".join(test.translate(trans).split())
103 extras[testname] = {'status': resmap[result]} 103 extras[testname] = {'status': resmap[result]}
104 104
105 failed_tests = {} 105 failed_tests = {}