From efec7cd843aca4be9e3a2008b662cdba81aa0cb3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 30 Sep 2014 17:41:55 -0700 Subject: [PATCH] visual tests: specialize grid diff tolerance --- tests/visual_tests/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/visual_tests/test.py b/tests/visual_tests/test.py index 7ebb8f44f..78b928958 100755 --- a/tests/visual_tests/test.py +++ b/tests/visual_tests/test.py @@ -27,6 +27,7 @@ defaults = { cairo_threshold = 10 agg_threshold = 0 +grid_threshold = 0 if 'Linux' == platform.uname()[0]: # we assume if linux then you are running packaged cairo # which is older than the 1.12.14 version we used on OS X @@ -34,6 +35,7 @@ if 'Linux' == platform.uname()[0]: # https://github.com/mapnik/mapnik/issues/1868 cairo_threshold = 230 agg_threshold = 12 + grid_threshold = 6 def render_cairo(m, output, scale_factor): mapnik.render_to_file(m, output, 'ARGB32', scale_factor) @@ -68,7 +70,7 @@ renderers = [ { 'name': 'grid', 'render': render_grid, 'compare': lambda actual, reference: compare_grids(actual, reference, alpha=False), - 'threshold': agg_threshold, + 'threshold': grid_threshold, 'filetype': 'json', 'dir': 'grids' }