Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade wptrunner #12223

Closed
wants to merge 8 commits into from
Next

Rename mach command to upgrade wptrunner and make it work more than o…

…nce.
  • Loading branch information
jdm committed Jul 4, 2016
commit c1fbb779352523a7acf1b99d6aa94028a9efd59c
@@ -143,14 +143,16 @@ def grep(self, params):
["git"] + ["grep"] + params + ['--'] + grep_paths + [':(exclude)*.min.js'],
env=self.build_env())

@Command('wpt-upgrade',
@Command('wptrunner-upgrade',
description='upgrade wptrunner.',
category='devenv')
def upgrade_wpt_runner(self):
with cd(path.join(self.context.topdir, 'tests', 'wpt', 'harness')):
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:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.