зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1054114 - Add exception stacks logged in test_status to mach and tbpl formatters.;r=jgraham
This commit is contained in:
Родитель
1e9808ffe1
Коммит
b0b695d91c
|
@ -215,11 +215,17 @@ class MachFormatter(base.BaseFormatter):
|
|||
self.status_buffer[test] = {"count": 0, "unexpected": [], "pass": 0}
|
||||
self.status_buffer[test]["count"] += 1
|
||||
|
||||
message = data.get("message", "")
|
||||
if "stack" in data:
|
||||
if message:
|
||||
message += "\n"
|
||||
message += data["stack"]
|
||||
|
||||
if "expected" in data:
|
||||
self.status_buffer[test]["unexpected"].append((data["subtest"],
|
||||
data["status"],
|
||||
data["expected"],
|
||||
data.get("message", "")))
|
||||
message))
|
||||
if data["status"] == "PASS":
|
||||
self.status_buffer[test]["pass"] += 1
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ class TbplFormatter(BaseFormatter):
|
|||
|
||||
def test_status(self, data):
|
||||
message = "- " + data["message"] if "message" in data else ""
|
||||
if "stack" in data:
|
||||
message += "\n%s" % data["stack"]
|
||||
if "expected" in data:
|
||||
failure_line = "TEST-UNEXPECTED-%s | %s | %s %s" % (
|
||||
data["status"], self.id_str(data["test"]), data["subtest"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче