Filter the difference to mitigate rasterization differences.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 14 Dec 2011 23:19:33 +0000 (23:19 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 14 Dec 2011 23:19:33 +0000 (23:19 +0000)
driver.py

index 49c01f2e8561340842e9a6ef9a0f1bf8521c1351..2eab23ca2de18e60d7d6369c9890f3999f9c7adc 100755 (executable)
--- a/driver.py
+++ b/driver.py
@@ -314,7 +314,7 @@ class TestCase:
 
         from snapdiff import Comparer
         comparer = Comparer(refImage, srcImage)
-        precision = comparer.precision()
+        precision = comparer.precision(filter=True)
         sys.stdout.write('precision of %f bits against %s\n' % (precision, refImageFileName))
         if precision < self.threshold_precision:
             prefix = '%s.%u' % (self.getNamePrefix(), callNo)