diff --git a/scripts/ci/utils/slash_command_handler.py b/scripts/ci/utils/slash_command_handler.py index a62139494..69d479921 100644 --- a/scripts/ci/utils/slash_command_handler.py +++ b/scripts/ci/utils/slash_command_handler.py @@ -485,7 +485,9 @@ def detect_cuda_suite(file_path_from_test): content = f.read() match = re.search( - r'register_cuda_ci\([^)]*suite\s*=\s*["\']([^"\']+)["\']', content + r'^[^#\n]*register_cuda_ci\([^)]*suite\s*=\s*["\']([^"\']+)["\']', + content, + re.MULTILINE, ) if not match: return (