summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/tools/layout_tests/layout_package/platform_utils_linux.py4
-rw-r--r--webkit/tools/layout_tests/test_types/fuzzy_image_diff.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
index 5c70111..f8cb79d 100644
--- a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
+++ b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py
@@ -179,6 +179,10 @@ class PlatformUtility(object):
# multiple debug/release targets).
return PathFromBase('chrome', 'Hammer', self.TestShellBinary())
+ def FuzzyMatchBinaryPath(self):
+ """Return the path to the fuzzy matcher binary."""
+ return PathFromBase('third_party', 'fuzzymatch', 'fuzzymatch')
+
def TestListPlatformDir(self):
"""Return the platform-specific directory for where the test lists live"""
return 'linux'
diff --git a/webkit/tools/layout_tests/test_types/fuzzy_image_diff.py b/webkit/tools/layout_tests/test_types/fuzzy_image_diff.py
index 4c5acaf..579a30a 100644
--- a/webkit/tools/layout_tests/test_types/fuzzy_image_diff.py
+++ b/webkit/tools/layout_tests/test_types/fuzzy_image_diff.py
@@ -39,7 +39,8 @@ class FuzzyImageDiff(test_type_base.TestTypeBase):
failures.append(test_failures.FailureMissingImage(self))
# Run the fuzzymatcher
- r = subprocess.call(['fuzzymatch', test_args.png_path, expected_png_file])
+ r = subprocess.call([path_utils.GetPlatformUtil().FuzzyMatchBinaryPath(),
+ test_args.png_path, expected_png_file])
if r != 0:
failures.append(test_failures.FailureFuzzyFailure(self))