Skip to content

Commit

Permalink
Bug 1808609 - Ignore non .txt files in test_site_compatibility.py, r=…
Browse files Browse the repository at this point in the history
…ahochheiden

This ensures we aren't accidentally mistaking e.g, .rej files as valid sites.

Depends on D165998

Differential Revision: https://phabricator.services.mozilla.com/D165999
  • Loading branch information
ahal committed Jan 5, 2023
1 parent 62c8a8f commit 3042742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/mach/mach/test/test_site_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def _resolve_command_site_names():
if not child.is_file():
continue

if child.suffix != ".txt":
continue

if child.name == "mach.txt":
continue

Expand Down

0 comments on commit 3042742

Please sign in to comment.