Bug 1429388 - Use classic pytest output style for WPT. r=davehunt,jgraham
authorAndreas Tolfsen <ato@sny.no>
Wed, 10 Jan 2018 15:47:10 +0000
changeset 398588 4f065bc82a465371aaa8b6dc0de9514cf6e859c8
parent 398587 9b49df8dc9b9ba12db1f83e875df529394b26a36
child 398589 56528e7c9daccf6630cc0684655611f720e6b805
push id33224
push userdluca@mozilla.com
push dateWed, 10 Jan 2018 21:59:28 +0000
treeherdermozilla-central@57386b58c057 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavehunt, jgraham
bugs1429388
milestone59.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 1429388 - Use classic pytest output style for WPT. r=davehunt,jgraham The upstream upgrade of pytest came with a new test progress percentage feature that introduced a lot of unnecessary log output in WPT wdspec tests. This adds a pytest flag that reverts it to use the "classic" output style, which does not have a test progress bar. MozReview-Commit-ID: 9ucB7CzV5ig
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
@@ -53,16 +53,17 @@ def run(path, server_config, session_con
         try:
             pytest.main(["--strict",  # turn warnings into errors
                          "--verbose",  # show each individual subtest
                          "--capture", "no",  # enable stdout/stderr from tests
                          "--basetemp", cache,  # temporary directory
                          "--showlocals",  # display contents of variables in local scope
                          "-p", "no:mozlog",  # use the WPT result recorder
                          "-p", "no:cacheprovider",  # disable state preservation across invocations
+                         "-o=console_output_style=classic",  # disable test progress bar
                          path],
                         plugins=[harness, subtests])
         except Exception as e:
             harness.outcome = ("ERROR", str(e))
 
     return (harness.outcome, subtests.results)