aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorCorcovadoMing <rf37535@gmail.com>2016-04-28 19:58:30 +0800
committerCorcovadoMing <rf37535@gmail.com>2016-04-28 19:58:30 +0800
commit08a20e3be925cd73ea0e5f26c5710da69cc1b7fa (patch)
tree4f8698a7febae5eb4462f3cc7323ec272e8e6b16 /python/servo/testing_commands.py
parentb8e2fa58d61a4d77b67efa09a437ba6beb68e30e (diff)
downloadservo-08a20e3be925cd73ea0e5f26c5710da69cc1b7fa.tar.gz
servo-08a20e3be925cd73ea0e5f26c5710da69cc1b7fa.zip
pass --no-patch by default to update_css
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index f0eccee59af..4e55cf98f43 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -389,9 +389,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)