Fix paths in sanity tests.

pull/61506/head
Matt Clay 5 years ago
parent 4879cf8fff
commit ed46f83905

@ -5,7 +5,7 @@
"plugins/modules/", "plugins/modules/",
"plugins/module_utils/", "plugins/module_utils/",
"test/units/", "test/units/",
"test/unit/" "tests/unit/"
], ],
"files": [ "files": [
"__init__.py" "__init__.py"

@ -74,7 +74,7 @@ def main():
print('%s:%d:%d: should not have a shebang' % (path, 0, 0)) print('%s:%d:%d: should not have a shebang' % (path, 0, 0))
continue continue
elif path.startswith('test/integration/targets/'): elif path.startswith('test/integration/targets/') or path.startswith('tests/integration/targets/'):
is_integration = True is_integration = True
if dirname.endswith('/library') or '/plugins/modules' in dirname or dirname in ( if dirname.endswith('/library') or '/plugins/modules' in dirname or dirname in (

Loading…
Cancel
Save