Chromium Code Reviews| 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 import logging | 5 import logging |
| 6 | 6 |
| 7 from webkitpy.w3c.local_wpt import LocalWPT | 7 from webkitpy.w3c.local_wpt import LocalWPT |
| 8 from webkitpy.w3c.chromium_commit import ChromiumCommit | 8 from webkitpy.w3c.chromium_commit import ChromiumCommit |
| 9 from webkitpy.w3c.deps_updater import DepsUpdater | 9 from webkitpy.w3c.deps_updater import DepsUpdater |
| 10 | 10 |
| 11 _log = logging.getLogger(__name__) | 11 _log = logging.getLogger(__name__) |
| 12 CHROMIUM_WPT_DIR = 'third_party/WebKit/LayoutTests/imported/wpt/' | |
|
qyearsley
2016/12/19 17:50:08
(can be removed)
jeffcarp
2016/12/19 21:19:20
Oops thanks, I think that was a rebase error on my
| |
| 12 | 13 |
| 13 CHROMIUM_WPT_DIR = 'third_party/WebKit/LayoutTests/imported/wpt/' | 14 CHROMIUM_WPT_DIR = 'third_party/WebKit/LayoutTests/imported/wpt/' |
| 14 | 15 |
| 15 | 16 |
| 16 class TestExporter(object): | 17 class TestExporter(object): |
| 17 | 18 |
| 18 def __init__(self, host, wpt_github, dry_run=False): | 19 def __init__(self, host, wpt_github, dry_run=False): |
| 19 self.host = host | 20 self.host = host |
| 20 self.wpt_github = wpt_github | 21 self.wpt_github = wpt_github |
| 21 self.dry_run = dry_run | 22 self.dry_run = dry_run |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 | 130 |
| 130 return filter(is_exportable, chromium_commits) | 131 return filter(is_exportable, chromium_commits) |
| 131 | 132 |
| 132 def _has_expectations(self, chromium_commit): | 133 def _has_expectations(self, chromium_commit): |
| 133 files = self.host.executive.run_command([ | 134 files = self.host.executive.run_command([ |
| 134 'git', 'diff-tree', '--no-commit-id', | 135 'git', 'diff-tree', '--no-commit-id', |
| 135 '--name-only', '-r', chromium_commit.sha | 136 '--name-only', '-r', chromium_commit.sha |
| 136 ]).splitlines() | 137 ]).splitlines() |
| 137 | 138 |
| 138 return any(DepsUpdater.is_baseline(f) for f in files) | 139 return any(DepsUpdater.is_baseline(f) for f in files) |
| OLD | NEW |