Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "mach test-wpt --chaos" mode for reproducing intermittent failures using rr #9607

Merged
merged 3 commits into from Feb 11, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Factor out common code for mach test-wpt/test-css

  • Loading branch information
mbrubeck committed Feb 11, 2016
commit d11a70f53a647bcea3f56ae36b064d4a25b60090
@@ -332,19 +332,19 @@ def test_wpt_failure(self):
@Command('test-wpt',
description='Run the web platform tests',
category='testing',
parser=wptcommandline.create_parser)
@CommandArgument('--release', default=False, action="store_true",
help="Run with a release build of servo")
parser=create_parser_wpt)
def test_wpt(self, **kwargs):
self.ensure_bootstrapped()
hosts_file_path = path.join(self.context.topdir, 'tests', 'wpt', 'hosts')

os.environ["hosts_file_path"] = hosts_file_path
os.environ["RUST_BACKTRACE"] = "1"
run_file = path.abspath(path.join(self.context.topdir, "tests", "wpt", "run_wpt.py"))
return self.wptrunner(run_file, **kwargs)

# Helper for test_css and test_wpt:
def wptrunner(self, run_file, **kwargs):
os.environ["RUST_BACKTRACE"] = "1"
kwargs["debug"] = not kwargs["release"]

run_file = path.abspath(path.join(self.context.topdir, "tests", "wpt", "run_wpt.py"))
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
return run_globals["run_tests"](**kwargs)
@@ -398,11 +398,8 @@ def update_jquery(self, release, dev):
parser=create_parser_wpt)
def test_css(self, **kwargs):
self.ensure_bootstrapped()

run_file = path.abspath(path.join("tests", "wpt", "run_css.py"))
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
return run_globals["run_tests"](**kwargs)
return self.wptrunner(run_file, **kwargs)

@Command('update-css',
description='Update the web platform tests',
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.