X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Foutput-distance.py;h=49a659b73febd69fff0f79f01b0536b016cf7c1c;hb=2ab5d80245dcab194daea64ec83ded3ec8252e51;hp=cf213da8b13d0717e80b14ae38ebc1b9f785832b;hpb=0fcf4d1e0764c8d261014c32d1b87c197cf5444d;p=lilypond.git diff --git a/scripts/build/output-distance.py b/scripts/build/output-distance.py index cf213da8b1..49a659b73f 100755 --- a/scripts/build/output-distance.py +++ b/scripts/build/output-distance.py @@ -89,7 +89,7 @@ def compare_png_images (old, new, dest_dir): system ('convert -depth 8 -crop %dx%d+0+0 %s %s/crop1.png' % (dims + (old, dir))) system ('convert -depth 8 -crop %dx%d+0+0 %s %s/crop2.png' % (dims + (new, dir))) - system ('compare -depth 8 -dissimilarity-threshold 1 %(dir)s/crop1.png %(dir)s/crop2.png %(dir)s/diff.png' % locals ()) + system1 ('compare -depth 8 -dissimilarity-threshold 1 %(dir)s/crop1.png %(dir)s/crop2.png %(dir)s/diff.png' % locals ()) system ("convert -depth 8 %(dir)s/diff.png -blur 0x3 -negate -channel alpha,blue -type TrueColorMatte -fx 'intensity' %(dir)s/matte.png" % locals ()) @@ -827,7 +827,7 @@ class ComparisonData: re.sub (r'\\sourcefilename "([^"]+)"', note_original, open (sf).read ()) else: - print 'no source for', val + print 'no source for', val.file_names[1] def compare_trees (self, dir1, dir2): self.compare_directories (dir1, dir2) @@ -842,6 +842,10 @@ class ComparisonData: sys.exit(1) for d in dirs: + # don't walk the share folders + if d.startswith("share"): + continue + d1 = os.path.join (dir1, d) d2 = os.path.join (dir2, d) @@ -984,9 +988,12 @@ class ComparisonData: summary += '

%d unchanged

' % len (unchanged) + me = sys.argv[0] + html = ''' LilyPond regression test results +