Skip to content

Commit

Permalink
Mach update-wpt shoudl default to "--no-patch"
Browse files Browse the repository at this point in the history
Change mach default behavior for update-wpt to "--no-patch" provide an
alternate option "--patch" for anyone who does want this behavior
  • Loading branch information
dlrobertson committed Feb 17, 2016
1 parent f7f0eea commit 9a563fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/servo/testing_commands.py
Expand Up @@ -360,9 +360,12 @@ def wptrunner(self, run_file, **kwargs):
description='Update the web platform tests',
category='testing',
parser=updatecommandline.create_parser())
def update_wpt(self, **kwargs):
@CommandArgument('--patch', action='store_true', default=False,
help='Create an mq patch or git commit containing the changes')
def update_wpt(self, patch, **kwargs):
self.ensure_bootstrapped()
run_file = path.abspath(path.join("tests", "wpt", "update.py"))
kwargs["no_patch"] = not patch
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
return run_globals["update_tests"](**kwargs)
Expand Down

0 comments on commit 9a563fa

Please sign in to comment.