зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1370359 - Stop dumping all tests to errorsummary.log; include manifest in error lines, r=jgraham
MozReview-Commit-ID: 9m0ArgifgU9 --HG-- extra : rebase_source : 25ba80a4e2947e727c055a35c47ce0275df41682
This commit is contained in:
Родитель
12cc7edad9
Коммит
f863907f7e
|
@ -10,6 +10,7 @@ from base import BaseFormatter
|
|||
class ErrorSummaryFormatter(BaseFormatter):
|
||||
|
||||
def __init__(self):
|
||||
self.groups = None
|
||||
self.line_count = 0
|
||||
|
||||
def __call__(self, data):
|
||||
|
@ -25,6 +26,7 @@ class ErrorSummaryFormatter(BaseFormatter):
|
|||
def _output_test(self, test, subtest, item):
|
||||
data = {"test": test,
|
||||
"subtest": subtest,
|
||||
"group": self.groups.get(test, ''),
|
||||
"status": item["status"],
|
||||
"expected": item["expected"],
|
||||
"message": item.get("message"),
|
||||
|
@ -32,7 +34,8 @@ class ErrorSummaryFormatter(BaseFormatter):
|
|||
return self._output("test_result", data)
|
||||
|
||||
def suite_start(self, item):
|
||||
return self._output("test_groups", {"tests": item["tests"]})
|
||||
self.groups = {v: k for k in item["tests"] for v in item["tests"][k]}
|
||||
return self._output("test_groups", {"groups": item["tests"].keys()})
|
||||
|
||||
def test_status(self, item):
|
||||
if "expected" not in item:
|
||||
|
|
Загрузка…
Ссылка в новой задаче