From 906b7b33efc788d169a4d746b8a2a90c136d9b73 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 4 Jul 2016 10:29:30 -0400 Subject: [PATCH] Rename mach command to upgrade wptrunner and make it work more than once. --- python/servo/devenv_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 5a41b8b1b37..c99012a9a41 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -170,7 +170,7 @@ class MachCommands(CommandBase): print(cargo_path) call(["cargo", "fetch"], env=self.build_env()) - @Command('wpt-upgrade', + @Command('wptrunner-upgrade', description='upgrade wptrunner.', category='devenv') def upgrade_wpt_runner(self): @@ -178,6 +178,8 @@ class MachCommands(CommandBase): code = call(["git", "init"], env=self.build_env()) if code: return code + # No need to report an error if this fails, as it will for the first use + call(["git", "remote", "rm", "upstream"], env=self.build_env()) code = call( ["git", "remote", "add", "upstream", "https://github.com/w3c/wptrunner.git"], env=self.build_env()) if code: