Show last two traceback lines in failure summary stats
Presently, the failure tracebacks displayed on the tempest summary directive only show the last line of the failing test's traceback. After analyzing some sample logs, it was determined that the last two lines provide a more full picture of the failure, including exception codes. This patchs adds code to the stackviz-export parser to include the last two traceback lines for display on the summary page. Change-Id: Ib0bffd5b402093adbf1ff6618413df8e8a138670
This commit is contained in:
parent
728eb59ae8
commit
98cb04f1dd
@ -49,8 +49,8 @@
|
||||
<h4 class="list-group-item-heading">
|
||||
{{fail.name | split:'.' | slice:-2 | join:'.'}}
|
||||
</h4>
|
||||
<p class="list-group-item-text">
|
||||
{{fail.details}}
|
||||
<p ng-repeat="line in fail.details" class="list-group-item-text">
|
||||
{{line}}
|
||||
</p>
|
||||
</a>
|
||||
</ul>
|
||||
|
@ -96,7 +96,9 @@ def get_stats(stream):
|
||||
# of the traceback
|
||||
msg = None
|
||||
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({
|
||||
'name': entry['name'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user