aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorDaniel Robertson <danlrobertson89@gmail.com>2016-02-17 20:43:00 +0000
committerDaniel Robertson <danlrobertson89@gmail.com>2016-02-17 20:44:06 +0000
commit9a563fa1099b840e22913cd38c931353a2bc725e (patch)
tree48bac6d43f1ff50f5b1d4dba5015c92d679f1645 /python/servo/testing_commands.py
parentf7f0eea47035f4316d09db26315bf8ebb72637c9 (diff)
downloadservo-9a563fa1099b840e22913cd38c931353a2bc725e.tar.gz
servo-9a563fa1099b840e22913cd38c931353a2bc725e.zip
Mach update-wpt shoudl default to "--no-patch"
Change mach default behavior for update-wpt to "--no-patch" provide an alternate option "--patch" for anyone who does want this behavior
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 5e55ca18925..681542004a3 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -360,9 +360,12 @@ class MachCommands(CommandBase):
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)