Chromium Code Reviews| Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py |
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py |
| index f52c30fa86fc82e98aa037dcb95976e23ca74996..6e9bef12902631abe88bc0144d1611c2ef4d3321 100644 |
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py |
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py |
| @@ -738,8 +738,22 @@ class Port(object): |
| tests.append(file_path) |
| return tests |
| + def _generate_manifest(self, dest_path): |
|
qyearsley
2017/01/19 23:56:19
I usually like to put helper methods under the met
|
| + manifest_path = self._webkit_finder.path_from_webkit_base( |
| + 'Tools', 'Scripts', 'webkitpy', 'thirdparty', 'wpt', 'wpt', 'manifest') |
| + |
| + if 'css' in dest_path: |
| + # Do nothing for csswg-test. |
| + return |
| + _log.info('Generating MANIFEST.json') |
| + self._executive.run_command([manifest_path, '--work', '--tests-root', dest_path]) |
| + |
| @memoized |
| def _wpt_manifest(self): |
| + # Regenerate manifest |
|
qyearsley
2017/01/19 23:56:19
Not sure if this comment is necessary, since the m
|
| + dest_path = self._webkit_finder.path_from_webkit_base('LayoutTests', 'external', 'wpt') |
| + self._generate_manifest(dest_path) |
| + |
| path = self._filesystem.join(self.layout_tests_dir(), 'external', 'wpt', 'MANIFEST.json') |
| return json.loads(self._filesystem.read_text_file(path)) |