Commit c727d741 authored by Denis Bilenko's avatar Denis Bilenko

testrunner.py: be resilient when None is stored in the output field instead of an empty string

parent 79ce255e
......@@ -326,7 +326,7 @@ def print_stats(options):
print ' - ' + '\n - '.join(timedout)
warning_reports = []
for test, output, retcode in cursor.execute('select test, output, retcode from test where runid=?', (options.runid, )):
output_lower = output.lower()
output_lower = (output or '').lower()
warnings = output_lower.count('warning')
tracebacks = output_lower.count('traceback')
if warnings or tracebacks:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment