Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 1461490 - update verify allowlist followup for windows ESR52, r=b…
Browse files Browse the repository at this point in the history
…hearsum

MozReview-Commit-ID: GoRGM0KtxMi

--HG--
extra : amend_source : 7746c3ede8ad11f66b55c3c2c0b3dce1e3760dbf
  • Loading branch information
nthomas-mozilla committed Jun 6, 2018
1 parent 35635c8 commit 6b29ace
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release/compare-directories.py
Expand Up @@ -90,8 +90,8 @@ def walk_dir(path):
all_files.extend([os.path.join(root, f) for f in files])

# trim off directory prefix for easier comparison
all_dirs = [d.replace(path + '/', '') for d in all_dirs]
all_files = [f.replace(path + '/', '') for f in all_files]
all_dirs = [d[len(path)+1:] for d in all_dirs]
all_files = [f[len(path)+1:] for f in all_files]

return all_dirs, all_files

Expand All @@ -104,14 +104,14 @@ def compare_listings(source_list, target_list, label, source_dir, target_dir):
left_diff = obj1 - obj2
if left_diff:
logging.error('{} only in {}:'.format(label, source_dir))
for d in left_diff:
for d in sorted(left_diff):
logging.error(' {}'.format(d))
difference_found = True

right_diff = obj2 - obj1
if right_diff:
logging.error('{} only in {}:'.format(label, target_dir))
for d in right_diff:
for d in sorted(right_diff):
logging.error(' {}'.format(d))
difference_found = True

Expand Down

0 comments on commit 6b29ace

Please sign in to comment.