From: Carl Worth Date: Tue, 3 Apr 2012 22:18:00 +0000 (-0700) Subject: snapdiff: Add filename column to HTML report X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=ae3981a47606435ed5d3567384d96c07f8d01131;p=apitrace snapdiff: Add filename column to HTML report 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 --- 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)
%s%sΔ
File%s%sΔ
%s