Title: [253126] branches/safari-608-branch/Tools
Revision
253126
Author
[email protected]
Date
2019-12-04 15:34:24 -0800 (Wed, 04 Dec 2019)

Log Message

Cherry-pick r252050. rdar://problem/56900657

    REGRESSION(r252031): layout tests fail to run in non apple ports after r252031
    https://bugs.webkit.org/show_bug.cgi?id=203844

    Patch by Carlos Garcia Campos <[email protected]> on 2019-11-05
    Reviewed by Žan Doberšek.

    Since r252032 Port.check_image_diff() assumes that ImageDiff binary is built in the build path, which is not
    true for all ports. This patch adds Port._path_to_default_image_diff() to be used instead of the build_path()
    and overriden by ports not building the ImageDiff in the build path.

    * Scripts/webkitpy/port/base.py:
    (Port.check_image_diff):
    (Port._path_to_default_image_diff):
    (Port._path_to_image_diff):
    * Scripts/webkitpy/port/gtk.py:
    (GtkPort._path_to_default_image_diff):
    * Scripts/webkitpy/port/win.py:
    (WinPort._path_to_default_image_diff):
    * Scripts/webkitpy/port/wpe.py:
    (WPEPort._path_to_default_image_diff):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252050 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-608-branch/Tools/ChangeLog (253125 => 253126)


--- branches/safari-608-branch/Tools/ChangeLog	2019-12-04 23:24:48 UTC (rev 253125)
+++ branches/safari-608-branch/Tools/ChangeLog	2019-12-04 23:34:24 UTC (rev 253126)
@@ -1,3 +1,52 @@
+2019-12-04  Alan Coon  <[email protected]>
+
+        Cherry-pick r252050. rdar://problem/56900657
+
+    REGRESSION(r252031): layout tests fail to run in non apple ports after r252031
+    https://bugs.webkit.org/show_bug.cgi?id=203844
+    
+    Patch by Carlos Garcia Campos <[email protected]> on 2019-11-05
+    Reviewed by Žan Doberšek.
+    
+    Since r252032 Port.check_image_diff() assumes that ImageDiff binary is built in the build path, which is not
+    true for all ports. This patch adds Port._path_to_default_image_diff() to be used instead of the build_path()
+    and overriden by ports not building the ImageDiff in the build path.
+    
+    * Scripts/webkitpy/port/base.py:
+    (Port.check_image_diff):
+    (Port._path_to_default_image_diff):
+    (Port._path_to_image_diff):
+    * Scripts/webkitpy/port/gtk.py:
+    (GtkPort._path_to_default_image_diff):
+    * Scripts/webkitpy/port/win.py:
+    (WinPort._path_to_default_image_diff):
+    * Scripts/webkitpy/port/wpe.py:
+    (WPEPort._path_to_default_image_diff):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-11-05  Carlos Garcia Campos  <[email protected]>
+
+            REGRESSION(r252031): layout tests fail to run in non apple ports after r252031
+            https://bugs.webkit.org/show_bug.cgi?id=203844
+
+            Reviewed by Žan Doberšek.
+
+            Since r252032 Port.check_image_diff() assumes that ImageDiff binary is built in the build path, which is not
+            true for all ports. This patch adds Port._path_to_default_image_diff() to be used instead of the build_path()
+            and overriden by ports not building the ImageDiff in the build path.
+
+            * Scripts/webkitpy/port/base.py:
+            (Port.check_image_diff):
+            (Port._path_to_default_image_diff):
+            (Port._path_to_image_diff):
+            * Scripts/webkitpy/port/gtk.py:
+            (GtkPort._path_to_default_image_diff):
+            * Scripts/webkitpy/port/win.py:
+            (WinPort._path_to_default_image_diff):
+            * Scripts/webkitpy/port/wpe.py:
+            (WPEPort._path_to_default_image_diff):
+
 2019-12-04  Tim Horton  <[email protected]>
 
         Fix the TestWebKitAPI 608-branch build

Modified: branches/safari-608-branch/Tools/Scripts/webkitpy/port/base.py (253125 => 253126)


--- branches/safari-608-branch/Tools/Scripts/webkitpy/port/base.py	2019-12-04 23:24:48 UTC (rev 253125)
+++ branches/safari-608-branch/Tools/Scripts/webkitpy/port/base.py	2019-12-04 23:34:24 UTC (rev 253126)
@@ -292,7 +292,7 @@
 
     def check_image_diff(self, override_step=None, logging=True):
         """This routine is used to check whether image_diff binary exists."""
-        image_diff_path = self._build_path('ImageDiff')
+        image_diff_path = self._path_to_default_image_diff()
         if not self._filesystem.exists(image_diff_path):
             if logging:
                 _log.error("ImageDiff was not found at %s" % image_diff_path)
@@ -1378,6 +1378,10 @@
         This is likely only used by start/stop_helper()."""
         return None
 
+    def _path_to_default_image_diff(self):
+        """Returns the full path to the default ImageDiff binary, or None if it is not available."""
+        return self._build_path('ImageDiff')
+
     @memoized
     def _path_to_image_diff(self):
         """Returns the full path to the image_diff binary, or None if it is not available.

Modified: branches/safari-608-branch/Tools/Scripts/webkitpy/port/gtk.py (253125 => 253126)


--- branches/safari-608-branch/Tools/Scripts/webkitpy/port/gtk.py	2019-12-04 23:24:48 UTC (rev 253125)
+++ branches/safari-608-branch/Tools/Scripts/webkitpy/port/gtk.py	2019-12-04 23:34:24 UTC (rev 253126)
@@ -188,6 +188,9 @@
     def _path_to_image_diff(self):
         return self._built_executables_path('ImageDiff')
 
+    def _path_to_default_image_diff(self):
+        return self._path_to_image_diff()
+
     def _path_to_webcore_library(self):
         gtk_library_names = [
             "libwebkitgtk-1.0.so",

Modified: branches/safari-608-branch/Tools/Scripts/webkitpy/port/win.py (253125 => 253126)


--- branches/safari-608-branch/Tools/Scripts/webkitpy/port/win.py	2019-12-04 23:24:48 UTC (rev 253125)
+++ branches/safari-608-branch/Tools/Scripts/webkitpy/port/win.py	2019-12-04 23:34:24 UTC (rev 253126)
@@ -195,6 +195,9 @@
     def _path_to_default_image_diff(self):
         return self._build_path('ImageDiff.exe')
 
+    def _path_to_default_image_diff(self):
+        return self._path_to_image_diff()
+
     API_TEST_BINARY_NAMES = ['TestWTF.exe', 'TestWebCore.exe', 'TestWebKitLegacy.exe']
 
     def path_to_api_test_binaries(self):

Modified: branches/safari-608-branch/Tools/Scripts/webkitpy/port/wpe.py (253125 => 253126)


--- branches/safari-608-branch/Tools/Scripts/webkitpy/port/wpe.py	2019-12-04 23:24:48 UTC (rev 253125)
+++ branches/safari-608-branch/Tools/Scripts/webkitpy/port/wpe.py	2019-12-04 23:34:24 UTC (rev 253126)
@@ -103,6 +103,9 @@
     def _path_to_image_diff(self):
         return self._built_executables_path('ImageDiff')
 
+    def _path_to_default_image_diff(self):
+        return self._path_to_image_diff()
+
     def _search_paths(self):
         return [self.port_name, 'wk2'] + self.get_option("additional_platform_directory", [])
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to