[CI] Fix rerun-test suite detection to skip commented registrations (#21753)
This commit is contained in:
@@ -485,7 +485,9 @@ def detect_cuda_suite(file_path_from_test):
|
|||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
match = re.search(
|
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:
|
if not match:
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user