From f963c8ca3d1af74a2344a080cad7f1097082880e Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 4 Mar 2020 13:18:12 -0800 Subject: [PATCH] Update no-unwanted-files sanity test. This prepares for an additional path to be present after migration. --- test/sanity/code-smell/no-unwanted-files.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sanity/code-smell/no-unwanted-files.py b/test/sanity/code-smell/no-unwanted-files.py index 197ae60331e..93260623b39 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