diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-26 00:13:27 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-26 00:13:27 +0530 |
commit | 455ed0ae6d4c82fd38762a92f0dd6697bd3b2b50 (patch) | |
tree | 810733a56dc57302f509272d28d9b0cadca1f173 /python/servo/testing_commands.py | |
parent | 553cf3d8e8dfc5eb1222fc48b507d6578da6bc66 (diff) | |
parent | 9a563fa1099b840e22913cd38c931353a2bc725e (diff) | |
download | servo-455ed0ae6d4c82fd38762a92f0dd6697bd3b2b50.tar.gz servo-455ed0ae6d4c82fd38762a92f0dd6697bd3b2b50.zip |
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 -->
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index e0e25c161d5..20ed8c29ec3 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -364,9 +364,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) |