1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Skip sanity tests that don't apply to bundled code

* add distro to pep8 skip tests
* Skip no-assert test for distro
* Add bundled distro to the empty-init skip list
This commit is contained in:
Adrian Likins 2018-02-21 12:31:41 -05:00 committed by Toshio Kuratomi
parent e872811b8d
commit be65d9cfe5
3 changed files with 7 additions and 1 deletions

View file

@ -9,9 +9,11 @@ def main():
'test/sanity/code-smell/%s' % os.path.basename(__file__), 'test/sanity/code-smell/%s' % os.path.basename(__file__),
# facts is grandfathered in but will break namespacing # facts is grandfathered in but will break namespacing
# the only way to fix it is to deprecate and eventually remove it # the only way to fix it is to deprecate and eventually remove it
# six will break namespacing but because it is bundled we should not be overriding it # six and distro will break namespacing but because it is bundled we should not be
# overriding it
'lib/ansible/module_utils/facts/__init__.py', 'lib/ansible/module_utils/facts/__init__.py',
'lib/ansible/module_utils/six/__init__.py', 'lib/ansible/module_utils/six/__init__.py',
'lib/ansible/module_utils/distro/__init__.py',
]) ])
for path in sys.argv[1:] or sys.stdin.read().splitlines(): for path in sys.argv[1:] or sys.stdin.read().splitlines():

View file

@ -12,6 +12,7 @@ def main():
skip = set([ skip = set([
'test/sanity/code-smell/%s' % os.path.basename(__file__), 'test/sanity/code-smell/%s' % os.path.basename(__file__),
'lib/ansible/module_utils/compat/ipaddress.py', 'lib/ansible/module_utils/compat/ipaddress.py',
'lib/ansible/module_utils/distro/_distro.py',
]) ])
for path in sys.argv[1:] or sys.stdin.read().splitlines(): for path in sys.argv[1:] or sys.stdin.read().splitlines():

View file

@ -0,0 +1,3 @@
# _distro.py is being bundled and we don't want to modify bundled code in our repository.
# We can retest anytime we update the bundled copy
lib/ansible/module_utils/distro/_distro.py