mirror of
https://github.com/servo/servo.git
synced 2025-08-20 21:05:34 +01:00
Update web-platform-tests to revision 592e2ed83ecd717392d37047536250ba74f1bafa
This commit is contained in:
parent
c8b0dc965d
commit
0a3e19aac8
65 changed files with 1906 additions and 106 deletions
|
@ -102,7 +102,19 @@ class SubtestResultRecorder(object):
|
|||
self.record(report.nodeid, "PASS")
|
||||
|
||||
def record_fail(self, report):
|
||||
self.record(report.nodeid, "FAIL", stack=report.longrepr)
|
||||
# pytest outputs the stacktrace followed by an error message prefixed
|
||||
# with "E ", e.g.
|
||||
#
|
||||
# def test_example():
|
||||
# > assert "fuu" in "foobar"
|
||||
# > E AssertionError: assert 'fuu' in 'foobar'
|
||||
message = ""
|
||||
for line in report.longreprtext.splitlines():
|
||||
if line.startswith("E "):
|
||||
message = line[1:].strip()
|
||||
break
|
||||
|
||||
self.record(report.nodeid, "FAIL", message=message, stack=report.longrepr)
|
||||
|
||||
def record_error(self, report):
|
||||
# error in setup/teardown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue