mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ac1698099d
* Remove unnecessary sys.exit calls. * Add files filtering for code-smell tests. * Enhance test-constraints code-smell test. * Simplify compile sanity test. * Pass paths to importer on stdin. * Pass paths to yamllinter on stdin. * Add work-around for unicode path filtering. * Enhance configure-remoting-ps1 code-smell test. * Enhance integration-aliases code-smell test. * Enhance azure-requirements code-smell test. * Enhance no-illegal-filenames code-smell test.
20 lines
456 B
Python
Executable file
20 lines
456 B
Python
Executable file
#!/usr/bin/env python
|
|
"""Make sure the Azure requirements files match."""
|
|
|
|
import filecmp
|
|
import os
|
|
|
|
|
|
def main():
|
|
src = 'packaging/requirements/requirements-azure.txt'
|
|
dst = 'test/runner/requirements/integration.cloud.azure.txt'
|
|
|
|
if not filecmp.cmp(src, dst):
|
|
print('%s: must be identical to `%s`' % (dst, src))
|
|
|
|
if os.path.islink(dst):
|
|
print('%s: must not be a symbolic link' % dst)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|