[CI] Prune redundant CPU test overhead (#34309)
Co-authored-by: hnyls2002 <lsyincs@gmail.com>
This commit is contained in:
co-authored by
hnyls2002
parent
6ad3f2d8fd
commit
85cdf1178d
+3
-4
@@ -319,10 +319,9 @@ def run_a_suite(args):
|
||||
for f in glob.glob(
|
||||
os.path.join(script_dir, "registered", "**", "*.py"), recursive=True
|
||||
)
|
||||
if not f.endswith("/conftest.py")
|
||||
and not f.endswith("/__init__.py")
|
||||
and not f.endswith("/cpu/utils.py")
|
||||
and not f.endswith("/run_tests.py")
|
||||
# conftest.py / __init__.py are pytest+package structure, never
|
||||
# registered tests, and must not be executed as one.
|
||||
if os.path.basename(f) not in ("conftest.py", "__init__.py")
|
||||
]
|
||||
|
||||
# Strict: all discovered files must have proper registration
|
||||
|
||||
Reference in New Issue
Block a user