summaryrefslogtreecommitdiff
path: root/test/sanity/code-smell/botmeta.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-03-04 12:57:04 -0800
committerMatt Clay <matt@mystile.com>2020-03-04 14:03:09 -0800
commitb26ceb57ce0bafbec58215276706e48b6d3437a8 (patch)
tree4bfca1a489b5b696535c68846b95410b2f626961 /test/sanity/code-smell/botmeta.py
parent4fb7e6200312994df0b363faf1de8064c86a9869 (diff)
downloadansible-b26ceb57ce0bafbec58215276706e48b6d3437a8.tar.gz
Remove file exists check from botmeta sanity test.
Many of the paths in botmeta will no longer exist after migration, making this check pointless.
Diffstat (limited to 'test/sanity/code-smell/botmeta.py')
-rwxr-xr-xtest/sanity/code-smell/botmeta.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/sanity/code-smell/botmeta.py b/test/sanity/code-smell/botmeta.py
index 3f05d249a0..daad3355b2 100755
--- a/test/sanity/code-smell/botmeta.py
+++ b/test/sanity/code-smell/botmeta.py
@@ -79,17 +79,6 @@ def main():
continue
path_macros.append(macro)
- # Ensure all `files` correspond to a file
- for file, file_meta in botmeta['files'].items():
- migrated = isinstance(file_meta, dict) and file_meta.get('migrated_to') is not None
- for macro in path_macros:
- file = file.replace('$' + macro, botmeta.get('macros', {}).get(macro, ''))
- if not os.path.exists(file) and not migrated:
- # Not a file or directory, though maybe the prefix to one?
- # https://github.com/ansible/ansibullbot/pull/1023
- if not glob.glob('%s*' % file):
- print("%s:%d:%d: Can't find '%s.*' in this branch" % (path, 0, 0, file))
-
if __name__ == '__main__':
main()