Bug 1270617 - Fix suite summary lines in treeherder r?ahal
MozReview-Commit-ID: DBKSoUFM5uw
--- a/testing/mozharness/mozharness/mozilla/structuredlog.py
+++ b/testing/mozharness/mozharness/mozilla/structuredlog.py
@@ -147,17 +147,17 @@ class StructuredOutputParser(OutputParse
expected_failures = summary.expected_statuses.get('FAIL', 0)
if unexpected_count:
fail_text = '<em class="testfail">%s</em>' % unexpected_count
else:
fail_text = '0'
text_summary = "%s/%s/%s" % (expected_count, fail_text, expected_failures)
- self.info("TinderboxPrint: %s: %s\n" % (suite_name, text_summary))
+ self.info("TinderboxPrint: %s<br/>%s\n" % (suite_name, text_summary))
def append_tinderboxprint_line(self, suite_name):
summary = self.handler.summarize()
unexpected_count = sum(summary.unexpected_statuses.values())
expected_count = sum(summary.expected_statuses.values())
expected_failures = summary.expected_statuses.get('FAIL', 0)
crashed = 0
if 'crash' in summary.action_counts:
--- a/testing/mozharness/mozharness/mozilla/testing/unittest.py
+++ b/testing/mozharness/mozharness/mozilla/testing/unittest.py
@@ -82,17 +82,17 @@ class TestSummaryOutputParserHelper(Outp
failed = "0"
if self.passed == 0 and self.failed == 0:
self.tsummary = emphasize_fail_text % "T-FAIL"
else:
if self.failed > 0:
failed = emphasize_fail_text % str(self.failed)
self.tsummary = "%d/%s/%d" % (self.passed, failed, self.todo)
- self.info("TinderboxPrint: %s: %s\n" % (suite_name, self.tsummary))
+ self.info("TinderboxPrint: %s<br/>%s\n" % (suite_name, self.tsummary))
def append_tinderboxprint_line(self, suite_name):
self.print_summary(suite_name)
class DesktopUnittestOutputParser(OutputParser):
"""
A class that extends OutputParser such that it can parse the number of