mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Print process output for TIMEOUT status in WPT UI
Tests can time out due to script or runtime errors, which are typically reported via the Servo process output. Including process output for tests timing out makes it easier to understand these problems.
This commit is contained in:
parent
daad09d442
commit
4a23f6f2d0
1 changed files with 4 additions and 3 deletions
|
@ -167,9 +167,10 @@ class GroupingFormatter(base.BaseFormatter):
|
|||
self.expected[test_status] += 1
|
||||
return self.generate_output(text=None, new_display=new_display)
|
||||
|
||||
# If the test crashed, we also include any process output, because there is a good
|
||||
# chance that the test produced a stack trace.
|
||||
if test_status == "CRASH":
|
||||
# If the test crashed or timed out, we also include any process output,
|
||||
# because there is a good chance that the test produced a stack trace
|
||||
# or other error messages.
|
||||
if test_status in ("CRASH", "TIMEOUT"):
|
||||
stack = self.test_output[test_name] + data.get('stack', "")
|
||||
else:
|
||||
stack = data.get('stack', None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue