summaryrefslogtreecommitdiff
path: root/tests/test_cmdline_tool.py
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-12-28 05:17:04 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-12-28 05:17:04 (GMT)
commit0ff0d2b68a10851ffab1b8baa14f87d20869d084 (patch)
treefe742b3dc61b3152fc8704928cf58299accf6eb3 /tests/test_cmdline_tool.py
parent546ed1690486443e6780c1509626de8758a73498 (diff)
regression tests: fix ncc==0 false-fails when using NCC image comparison
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-xtests/test_cmdline_tool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py
index 967e334..4538984 100755
--- a/tests/test_cmdline_tool.py
+++ b/tests/test_cmdline_tool.py
@@ -110,7 +110,7 @@ def compare_png(resultfilename):
elif compare_method=='NCC':
thresh = 0.95
ncc_err = float(output.strip())
- if ncc_err > thresh: return True
+ if ncc_err > thresh or ncc_err==0.0: return True
else: print >> sys.stderr, ncc_err, ' Images differ: NCC comparison < ', thresh
return False
contact: Jan Huwald // Impressum