From 2a0adaf5424df7665b0a2859d7bcba90d7d84c35 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 7 Feb 2018 22:44:33 -0800 Subject: [PATCH] Improve bot messaging on CI failures. --- test/runner/lib/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/runner/lib/test.py b/test/runner/lib/test.py index c199fb1f01..2dc2248b1d 100644 --- a/test/runner/lib/test.py +++ b/test/runner/lib/test.py @@ -339,16 +339,16 @@ class TestFailure(TestResult): command = self.format_command() if self.summary: - reason = 'error' + reason = 'the error' else: - reason = 'error' if len(self.messages) == 1 else 'errors' + reason = '1 error' if len(self.messages) == 1 else '%d errors' % len(self.messages) if help_link: - help_link_markup = ' [[?](%s)]' % help_link + help_link_markup = ' [[explain](%s)]' % help_link else: help_link_markup = '' - title = 'The test `%s`%s failed with the following %s:' % (command, help_link_markup, reason) + title = 'The test `%s`%s failed with %s:' % (command, help_link_markup, reason) return title