Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/sync_wpt.py

Issue 2622033002: [WPT Export] Clean up TODOs (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """A script for exporting and importing changes between the Chromium repo 5 """A script for exporting and importing changes between the Chromium repo
6 and the web-platform-tests repo. 6 and the web-platform-tests repo.
7 7
8 TODO(jeffcarp): does not handle reverted changes right now 8 TODO(jeffcarp): does not handle reverted changes right now
9 TODO(jeffcarp): it also doesn't handle changes to -expected.html files 9 TODO(jeffcarp): Currently this script only does export; also add an option to im port as well.
10 TODO(jeffcarp): Currently this script only does export; also add an option 10 TODO(jeffcarp): have the script running this fetch Chromium origin/master
11 import as well. 11 TODO(jeffcarp): move WPT fetch out of its constructor to match planned ChromiumW PT pattern
qyearsley 2017/01/10 23:07:16 Nit: Capitalize initial words and add periods; opt
jeffcarp 2017/01/11 01:34:32 Good point, I filed bugs for all these and deleted
12 """ 12 """
13 13
14 import argparse 14 import argparse
15 import logging 15 import logging
16 16
17 from webkitpy.common.host import Host 17 from webkitpy.common.host import Host
18 from webkitpy.w3c.wpt_github import WPTGitHub 18 from webkitpy.w3c.wpt_github import WPTGitHub
19 from webkitpy.w3c.test_exporter import TestExporter 19 from webkitpy.w3c.test_exporter import TestExporter
20 from webkitpy.w3c.test_importer import configure_logging 20 from webkitpy.w3c.test_importer import configure_logging
21 21
22 _log = logging.getLogger(__name__) 22 _log = logging.getLogger(__name__)
23 23
24 24
25 def main(): 25 def main():
26 configure_logging() 26 configure_logging()
27 options = parse_args() 27 options = parse_args()
28 host = Host() 28 host = Host()
29 wpt_github = WPTGitHub(host) 29 wpt_github = WPTGitHub(host)
30 test_exporter = TestExporter(host, wpt_github, dry_run=options.dry_run) 30 test_exporter = TestExporter(host, wpt_github, dry_run=options.dry_run)
31 31
32 test_exporter.run() 32 test_exporter.run()
33 33
34 34
35 def parse_args(): 35 def parse_args():
36 parser = argparse.ArgumentParser(description='WPT Sync') 36 parser = argparse.ArgumentParser(description='WPT Sync')
37 parser.add_argument('--no-fetch', action='store_true') 37 parser.add_argument('--no-fetch', action='store_true')
38 parser.add_argument('--dry-run', action='store_true') 38 parser.add_argument('--dry-run', action='store_true')
39 return parser.parse_args() 39 return parser.parse_args()
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_exporter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698