Merge "Show last two traceback lines in failure summary stats"
This commit is contained in:
commit
8f09d69786
@ -49,8 +49,8 @@
|
|||||||
<h4 class="list-group-item-heading">
|
<h4 class="list-group-item-heading">
|
||||||
{{fail.name | split:'.' | slice:-2 | join:'.'}}
|
{{fail.name | split:'.' | slice:-2 | join:'.'}}
|
||||||
</h4>
|
</h4>
|
||||||
<p class="list-group-item-text">
|
<p ng-repeat="line in fail.details" class="list-group-item-text">
|
||||||
{{fail.details}}
|
{{line}}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -96,7 +96,9 @@ def get_stats(stream):
|
|||||||
# of the traceback
|
# of the traceback
|
||||||
msg = None
|
msg = None
|
||||||
if 'traceback' in entry['details']:
|
if 'traceback' in entry['details']:
|
||||||
msg = entry['details']['traceback'].strip().splitlines()[-1]
|
msg = entry['details']['traceback'].strip().splitlines()[-2:]
|
||||||
|
if 'Details' not in msg[1]:
|
||||||
|
msg.remove(msg[0])
|
||||||
|
|
||||||
failures.append({
|
failures.append({
|
||||||
'name': entry['name'],
|
'name': entry['name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user