summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-03-04 13:18:12 -0800
committerMatt Clay <matt@mystile.com>2020-03-04 14:03:35 -0800
commitf963c8ca3d1af74a2344a080cad7f1097082880e (patch)
tree885c7f9cbe7cbdc7c1c097eda4b3d896eac13a33 /test
parentb26ceb57ce0bafbec58215276706e48b6d3437a8 (diff)
downloadansible-f963c8ca3d1af74a2344a080cad7f1097082880e.tar.gz
Update no-unwanted-files sanity test.
This prepares for an additional path to be present after migration.
Diffstat (limited to 'test')
-rwxr-xr-xtest/sanity/code-smell/no-unwanted-files.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sanity/code-smell/no-unwanted-files.py b/test/sanity/code-smell/no-unwanted-files.py
index 197ae60331..93260623b3 100755
--- a/test/sanity/code-smell/no-unwanted-files.py
+++ b/test/sanity/code-smell/no-unwanted-files.py
@@ -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