diff --git a/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py b/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py index cf8dc960829..75e7acfb26a 100644 --- a/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py +++ b/test/lib/ansible_test/_util/controller/sanity/code-smell/shebang.py @@ -86,7 +86,7 @@ def main(): continue elif re.search('^roles/[^/]+/(?:files|templates)/', path): is_role_file = True - elif re.search('^tests?/integration/targets/[^/]+/(?:files|templates)/', path): + elif re.search('^tests/integration/targets/[^/]+/(?:files|templates)/', path): is_role_file = True elif path.startswith('test/integration/targets/') or path.startswith('tests/integration/targets/'): is_integration = True