mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
pass --no-patch by default to update_css
This commit is contained in:
parent
b8e2fa58d6
commit
08a20e3be9
1 changed files with 4 additions and 1 deletions
|
@ -389,9 +389,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_css(self, **kwargs):
|
@CommandArgument('--patch', action='store_true', default=False,
|
||||||
|
help='Create an mq patch or git commit containing the changes')
|
||||||
|
def update_css(self, patch, **kwargs):
|
||||||
self.ensure_bootstrapped()
|
self.ensure_bootstrapped()
|
||||||
run_file = path.abspath(path.join("tests", "wpt", "update_css.py"))
|
run_file = path.abspath(path.join("tests", "wpt", "update_css.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