Add fallback value for data['message'] (#33185)

Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-08-25 23:54:51 +02:00 committed by GitHub
parent a3f5a8482d
commit e0e562137c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())