Skip to content

Commit ccca1f3

Browse files
committed
Sort results in visual test HTML.
This makes the result a bit more reproducable and comparable.
1 parent 7cd4cc9 commit ccca1f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

visual_tests.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#
88

99
import os
10-
import six
11-
1210
from collections import defaultdict
1311

1412

@@ -57,7 +55,7 @@ def run():
5755

5856
failed_rows = []
5957
body_sections = []
60-
for subdir in _subdirs:
58+
for subdir in sorted(_subdirs):
6159
if subdir == "test_compare_images":
6260
# These are the images which test the image comparison functions.
6361
continue
@@ -78,7 +76,7 @@ def run():
7876
pictures[fn]["c"] = "/".join((subdir, file))
7977

8078
subdir_rows = []
81-
for name, test in six.iteritems(pictures):
79+
for name, test in sorted(pictures.items()):
8280
expected_image = test.get('e', '')
8381
actual_image = test.get('c', '')
8482

0 commit comments

Comments
 (0)