Bug 1452643 [wpt PR 10215] - [Gecko Bug 1433923] Use detailed failure message for wdspec test failures (pytest)., a=testonly
authorjgraham <james@hoppipolla.co.uk>
Mon, 09 Apr 2018 18:24:13 +0000
changeset 467209 aa307699d85b9ef29cc23845f1ee968c1f73a15f
parent 467208 58fdcb0d3c616e2457a12bb55b968e009ba1c94f
child 467210 6f3e57f64d7dcf943666ad18ce99ea0e2a2495bd
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452643, 10215, 1433923
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1452643 [wpt PR 10215] - [Gecko Bug 1433923] Use detailed failure message for wdspec test failures (pytest)., a=testonly Automatic update from web-platform-testsfixup! Fix indentation wpt-commits: 94ab26e4e5dc262e451be96e0f0883b5316f347f wpt-pr: 10215 wpt-commits: 94ab26e4e5dc262e451be96e0f0883b5316f347f wpt-pr: 10215
testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py
@@ -105,19 +105,19 @@ class SubtestResultRecorder(object):
         # 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
+            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
         if report.when != "call":
             message = "%s error" % report.when
         self.record(report.nodeid, "ERROR", message, report.longrepr)