mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 03:44:37 +00:00
servo: Merge #18756 - Update web-platform-tests (from servo:wptup); r=jgraham
This updates web-platform-tests to a46616a5b18e. It also removes our local copy of wptrunner in favour of the upstream one that we can modify and sync more easily. Carried from #17416. Source-Repo: https://github.com/servo/servo Source-Revision: 139055fca32de5e5a30161112752294770bdf67f --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 392d9af86455d0a0db5eb895f4fb4b0e59d63e71
This commit is contained in:
parent
d5414e4cbc
commit
c3cedeee45
@ -115,7 +115,7 @@ def wpt_harness_path(is_firefox, topdir, *paths):
|
||||
if is_firefox:
|
||||
rel = os.path.join(wpt_root, "tests", "tools", "wptrunner")
|
||||
else:
|
||||
rel = os.path.join(wpt_root, "harness")
|
||||
rel = os.path.join(wpt_root, "web-platform-tests", "tools", "wptrunner")
|
||||
|
||||
return os.path.join(topdir, rel, *paths)
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user