Fix paths in sanity tests.

This commit is contained in:
Matt Clay 2019-08-28 19:16:15 -07:00
parent 4879cf8fff
commit ed46f83905
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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 (