Bug 1391662 - Disable pytest cache provider in WPT. r?jgraham
The pytest cache provider lets you have access to --last-failed and
--failed-first based on a cache file it puts in .cache/v/lastfailed.
This can be useful for iterating on a set of failures, but not a feature
we want to support through wptrunner.
This patch disables the cache provider so that these files are
not generated. When calling wptrunner with --manifest-update, these
temporary files have had a tedency to be included in MANIFEST.json,
and this change will effectively prevent that from happening.
MozReview-Commit-ID: EU7zXAdxsfY
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/pytestrunner/runner.py
@@ -51,17 +51,18 @@ def run(path, server_config, session_con
# TODO(ato): Deal with timeouts
with TemporaryDirectory() as cache:
pytest.main(["--strict", # turn warnings into errors
"--verbose", # show each individual subtest
"--capture", "no", # enable stdout/stderr from tests
"--basetemp", cache, # temporary directory
- "-p", "no:mozlog",
+ "-p", "no:mozlog", # use the WPT result recorder
+ "-p", "no:cacheprovider", # disable state preservation across invocations
path],
plugins=plugins)
return recorder.results
class SubtestResultRecorder(object):
def __init__(self):