diff options
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r-- | meta/lib/oeqa/utils/logparser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py index 60df754b36..8054acc853 100644 --- a/meta/lib/oeqa/utils/logparser.py +++ b/meta/lib/oeqa/utils/logparser.py | |||
@@ -77,7 +77,10 @@ class PtestParser(object): | |||
77 | for t in test_regex: | 77 | for t in test_regex: |
78 | result = test_regex[t].search(line) | 78 | result = test_regex[t].search(line) |
79 | if result: | 79 | if result: |
80 | self.results[current_section['name']][result.group(1).strip()] = t | 80 | try: |
81 | self.results[current_section['name']][result.group(1).strip()] = t | ||
82 | except KeyError: | ||
83 | bb.warn("Result with no section: %s - %s" % (t, result.group(1).strip())) | ||
81 | 84 | ||
82 | # Python performance for repeatedly joining long strings is poor, do it all at once at the end. | 85 | # Python performance for repeatedly joining long strings is poor, do it all at once at the end. |
83 | # For 2.1 million lines in a log this reduces 18 hours to 12s. | 86 | # For 2.1 million lines in a log this reduces 18 hours to 12s. |