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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py

Issue 2644783003: Regenerate MANIFEST.json when WPT tests are run (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 side-by-side diff with in-line comments
Download patch
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))

Powered by Google App Engine
This is Rietveld 408576698