mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Rename mach command to upgrade wptrunner and make it work more than once.
This commit is contained in:
parent
6bd898626f
commit
906b7b33ef
1 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,7 @@ class MachCommands(CommandBase):
|
||||||
print(cargo_path)
|
print(cargo_path)
|
||||||
call(["cargo", "fetch"], env=self.build_env())
|
call(["cargo", "fetch"], env=self.build_env())
|
||||||
|
|
||||||
@Command('wpt-upgrade',
|
@Command('wptrunner-upgrade',
|
||||||
description='upgrade wptrunner.',
|
description='upgrade wptrunner.',
|
||||||
category='devenv')
|
category='devenv')
|
||||||
def upgrade_wpt_runner(self):
|
def upgrade_wpt_runner(self):
|
||||||
|
@ -178,6 +178,8 @@ class MachCommands(CommandBase):
|
||||||
code = call(["git", "init"], env=self.build_env())
|
code = call(["git", "init"], env=self.build_env())
|
||||||
if code:
|
if code:
|
||||||
return 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(
|
code = call(
|
||||||
["git", "remote", "add", "upstream", "https://github.com/w3c/wptrunner.git"], env=self.build_env())
|
["git", "remote", "add", "upstream", "https://github.com/w3c/wptrunner.git"], env=self.build_env())
|
||||||
if code:
|
if code:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue