Commit 815ed222 authored by Jose Fonseca's avatar Jose Fonseca

framework: Get traceback into json results.

Exceptions were not reaching it.
Reviewed-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent e6656495
......@@ -197,6 +197,7 @@ class TestResult(object):
'subtests': self.subtests,
'time': self.time,
'exception': self.exception,
'traceback': self.traceback,
'dmesg': self.dmesg,
'pid': self.pid,
}
......@@ -218,7 +219,7 @@ class TestResult(object):
inst = cls()
for each in ['returncode', 'command', 'exception', 'environment',
'time', 'result', 'dmesg', 'pid']:
'time', 'traceback', 'result', 'dmesg', 'pid']:
if each in dict_:
setattr(inst, each, dict_[each])
......
......@@ -75,6 +75,14 @@
</pre>${value.command}</pre>
</td>
</tr>
% if value.exception:
<tr>
<td>Exception</td>
<td>
<pre>${value.exception | h}</pre>
</td>
</tr>
% endif
% if value.traceback:
<tr>
<td>Traceback</td>
......
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