Skip to content

Commit

Permalink
Fix reference file check
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brody committed Sep 16, 2024
1 parent 46d7012 commit 3906528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/check_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def test_all_same(reference, actual):
errors = 0
for root, dirs, files in os.walk(actual):
for file in files:
reference_path = os.path.join(root, file)
relative = os.path.relpath(reference_path, reference)
actual_path = os.path.join(actual, relative)
actual_path = os.path.join(root, file)
relative = os.path.relpath(actual_path, actual)
reference_path = os.path.join(reference, relative)
if not os.path.isfile(reference_path):
errors += 1
print(f"Expected reference file {reference_path} not found")
Expand Down

0 comments on commit 3906528

Please sign in to comment.