From ae3981a47606435ed5d3567384d96c07f8d01131 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 3 Apr 2012 15:18:00 -0700 Subject: [PATCH] snapdiff: Add filename column to HTML report MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Basically, I want one cell that will always be present for turning the cell green or red based on whether the images match or not. Signed-off-by: José Fonseca --- scripts/snapdiff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/snapdiff.py b/scripts/snapdiff.py index 53d9f82..291b2da 100755 --- a/scripts/snapdiff.py +++ b/scripts/snapdiff.py @@ -134,7 +134,6 @@ def is_image(path): def find_images(prefix): - prefix = os.path.abspath(prefix) if os.path.isdir(prefix): prefix_dir = prefix else: @@ -192,7 +191,7 @@ def main(): html.write('\n') html.write(' \n') html.write(' \n') - html.write(' \n' % (ref_prefix, src_prefix)) + html.write(' \n' % (ref_prefix, src_prefix)) for image in images: ref_image = ref_prefix + image src_image = src_prefix + image @@ -208,6 +207,7 @@ def main(): comparer.write_diff(delta_image, fuzz=options.fuzz) html.write(' \n') + html.write(' \n' % (image,)) surface(html, ref_image) surface(html, src_image) surface(html, delta_image) -- 2.43.0
%s%sΔ
File%s%sΔ
%s