servo: Merge #10892 - Pass --no-patch by default to update_css (from CorcovadoMing:patch-1); r=Wafflespeanut

fix #10884 according to #9666

Source-Repo: https://github.com/servo/servo
Source-Revision: f932db34c85dcd65a46ddde3ce0d8f6c92c28b7b
This commit is contained in:
CorcovadoMing 2016-04-28 16:19:35 -07:00
Родитель e92750ab6b
Коммит 1e505b370b
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -385,9 +385,12 @@ class MachCommands(CommandBase):
description='Update the web platform tests',
category='testing',
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()
run_file = path.abspath(path.join("tests", "wpt", "update_css.py"))
kwargs["no_patch"] = not patch
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
return run_globals["update_tests"](**kwargs)