You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/sanity/code-smell/azure-requirements.py

21 lines
456 B
Python

#!/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()