mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
Use upstream wptrunner from web-platform-tests.
This commit is contained in:
parent
d9baadd3df
commit
ca340eca39
157 changed files with 4 additions and 15095 deletions
|
@ -285,29 +285,3 @@ class MachCommands(CommandBase):
|
|||
# Fetch Cargo dependencies
|
||||
with cd(self.context.topdir):
|
||||
call(["cargo", "fetch"], env=self.build_env())
|
||||
|
||||
@Command('wptrunner-upgrade',
|
||||
description='upgrade wptrunner.',
|
||||
category='devenv')
|
||||
def upgrade_wpt_runner(self):
|
||||
env = self.build_env()
|
||||
with cd(path.join(self.context.topdir, 'tests', 'wpt', 'harness')):
|
||||
code = call(["git", "init"], env=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=env)
|
||||
code = call(
|
||||
["git", "remote", "add", "upstream", "https://github.com/w3c/wptrunner.git"], env=env)
|
||||
if code:
|
||||
return code
|
||||
code = call(["git", "fetch", "upstream"], env=env)
|
||||
if code:
|
||||
return code
|
||||
code = call(["git", "reset", "--hard", "remotes/upstream/master"], env=env)
|
||||
if code:
|
||||
return code
|
||||
code = call(["rm", "-rf", ".git"], env=env)
|
||||
if code:
|
||||
return code
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue