Update no-unwanted-files sanity test.

This prepares for an additional path to be present after migration.
This commit is contained in:
Matt Clay 2020-03-04 13:18:12 -08:00
parent b26ceb57ce
commit f963c8ca3d

View file

@ -18,11 +18,18 @@ def main():
'.py',
)
skip_paths = set([
'lib/ansible/config/routing.yml', # not included in the sanity ignore file since it won't exist until after migration
])
skip_directories = (
'lib/ansible/galaxy/data/',
)
for path in paths:
if path in skip_paths:
continue
if any(path.startswith(skip_directory) for skip_directory in skip_directories):
continue