Bug 937412 - Syntax errors in xpcshell tests don't report the error. r=ted

This commit is contained in:
Mark Hammond
2013-11-22 17:32:28 +11:00
parent 18be5e92e0
commit 6a31f393e0
2 changed files with 23 additions and 0 deletions

View File

@@ -436,6 +436,8 @@ class XPCShellTestThread(Thread):
# the test was run.
if '_message' in line:
msg.append(line['_message'])
if 'diagnostic' in line:
msg.append('\nDiagnostic: %s' % line['diagnostic'])
else:
msg.append('%s | %s | %s' % (ACTION_STRINGS[line['action']],
line.get('source_file', 'undefined'),