OLD | NEW |
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): it also doesn't handle changes to -expected.html files |
10 TODO(jeffcarp): Currently this script only does export; also add an option | 10 TODO(jeffcarp): Currently this script only does export; also add an option |
(...skipping 16 matching lines...) Expand all Loading... |
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') | |
38 parser.add_argument('--dry-run', action='store_true') | 37 parser.add_argument('--dry-run', action='store_true') |
39 return parser.parse_args() | 38 return parser.parse_args() |
OLD | NEW |