From 32bd431b8cd3c91c5d2dd8285777d25c36712cb6 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 13 Feb 2023 21:39:55 +0100 Subject: [PATCH] Affect only collections, not core. Co-authored-by: Matt Clay --- .../ansible_test/_util/controller/sanity/code-smell/shebang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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