diff --git a/visual_tests.py b/visual_tests.py index 7fa5b4ebf6d..f395b9d21d0 100644 --- a/visual_tests.py +++ b/visual_tests.py @@ -43,13 +43,14 @@ def run(): fn, fext = os.path.splitext(file) if fext != ".png": continue + # Always use / for URLs. if "-failed-diff" in fn: - pictures[fn[:-12]]["f"] = os.path.join(subdir, file) + pictures[fn[:-12]]["f"] = "/".join((subdir, file)) elif "-expected" in fn: - pictures[fn[:-9]]["e"] = os.path.join(subdir, file) + pictures[fn[:-9]]["e"] = "/".join((subdir, file)) else: - pictures[fn]["c"] = os.path.join(subdir, file) - + pictures[fn]["c"] = "/".join((subdir, file)) + _body += "
| name | actual | expected | diff | \n" for name, test in six.iteritems(pictures):