mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add fallback value for data['message'] (#33185)
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
a3f5a8482d
commit
e0e562137c
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ class ServoFormatter(mozlog.formatters.base.BaseFormatter, ServoHandler):
|
|||
# Print reason that tests are skipped.
|
||||
if data["status"] == "SKIP":
|
||||
self.number_skipped += 1
|
||||
lines = [f"SKIP {data['test']}", f"{data['message']}\n"]
|
||||
lines = [f"SKIP {data['test']}", f"{data.get('message', '')}\n"]
|
||||
output_for_skipped_test = UnexpectedResult.wrap_and_indent_lines(lines, indent=" ")
|
||||
return self.generate_output(text=output_for_skipped_test, new_display=self.build_status_line())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue