mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #9685 - danlrobertson:i9666, r=Wafflespeanut
Mach update-wpt should default to "--no-patch" Change mach default behavior for `update-wpt` to use the "--no-patch" option and provide an alternate option "--patch" for anyone who does in fact want `update-wpt` to automatically create a commit. Fixes #9666 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9685) <!-- Reviewable:end -->
This commit is contained in:
commit
455ed0ae6d
1 changed files with 4 additions and 1 deletions
|
@ -364,9 +364,12 @@ class MachCommands(CommandBase):
|
||||||
description='Update the web platform tests',
|
description='Update the web platform tests',
|
||||||
category='testing',
|
category='testing',
|
||||||
parser=updatecommandline.create_parser())
|
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()
|
self.ensure_bootstrapped()
|
||||||
run_file = path.abspath(path.join("tests", "wpt", "update.py"))
|
run_file = path.abspath(path.join("tests", "wpt", "update.py"))
|
||||||
|
kwargs["no_patch"] = not patch
|
||||||
run_globals = {"__file__": run_file}
|
run_globals = {"__file__": run_file}
|
||||||
execfile(run_file, run_globals)
|
execfile(run_file, run_globals)
|
||||||
return run_globals["update_tests"](**kwargs)
|
return run_globals["update_tests"](**kwargs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue