+2015-01-31 Youenn Fablet <youenn.fablet@crf.canon.fr>
+
+ https://trac.webkit.org/changeset/179439 breaks a python test
+ https://bugs.webkit.org/show_bug.cgi?id=141114
+
+ Unreviewed.
+
+ * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
+ (WebPlatformTestServer._install_modules): Checks whether WPTModules file exists before reading it as no such file exists in mock tests.
+
2015-01-31 Youenn Fablet <youenn.fablet@crf.canon.fr>
Import W3C web platform tests infrastructure
self._doc_root_path = port_obj.path_from_webkit_base("LayoutTests", self._doc_root)
def _install_modules(self):
- modules = json.loads(self._filesystem.read_text_file(self._filesystem.join(self._layout_root, "imported", "w3c", "resources", "WPTModules")))
+ modules_file_path = self._filesystem.join(self._layout_root, "imported", "w3c", "resources", "WPTModules")
+ if not self._filesystem.isfile(modules_file_path):
+ _log.warning("Cannot read " + modules_file_path)
+ return
+ modules = json.loads(self._filesystem.read_text_file(modules_file_path))
for module in modules:
AutoInstaller(target_dir=self._filesystem.join(self._doc_root, module["path"])).install(url=module["url"], url_subpath=module["url_subpath"], target_name=module["name"])