| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """A script for exporting and importing changes between the Chromium repo | |
| 6 and the web-platform-tests repo. | |
| 7 """ | |
| 8 | |
| 9 import argparse | |
| 10 import logging | |
| 11 | |
| 12 from webkitpy.common.host import Host | |
| 13 from webkitpy.w3c.wpt_github import WPTGitHub | |
| 14 from webkitpy.w3c.test_exporter import TestExporter | |
| 15 from webkitpy.w3c.test_importer import configure_logging | |
| 16 | |
| 17 _log = logging.getLogger(__name__) | |
| 18 | |
| 19 | |
| 20 def main(): | |
| 21 configure_logging() | |
| 22 options = parse_args() | |
| 23 host = Host() | |
| 24 wpt_github = WPTGitHub(host) | |
| 25 test_exporter = TestExporter(host, wpt_github, dry_run=options.dry_run) | |
| 26 | |
| 27 test_exporter.run() | |
| 28 | |
| 29 | |
| 30 def parse_args(): | |
| 31 parser = argparse.ArgumentParser(description='WPT Sync') | |
| 32 parser.add_argument('--no-fetch', action='store_true') | |
| 33 parser.add_argument('--dry-run', action='store_true') | |
| 34 return parser.parse_args() | |
| OLD | NEW |