From 9a563fa1099b840e22913cd38c931353a2bc725e Mon Sep 17 00:00:00 2001 From: Daniel Robertson Date: Wed, 17 Feb 2016 20:43:00 +0000 Subject: [PATCH] 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 --- python/servo/testing_commands.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 5e55ca18925c..681542004a31 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -360,9 +360,12 @@ def wptrunner(self, run_file, **kwargs): 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)