Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit ba680bc

Browse files
committed
test.py: print which projects failed at the end
1 parent b865acb commit ba680bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,12 @@ def run_tests(conf: Config):
214214

215215
tests = [Test(td) for td in conf.project_dirs]
216216

217-
def run(tt: Test) -> bool:
218-
return tt.run(conf)
217+
def run(tt: Test) -> tuple[Test, bool]:
218+
return tt, tt.run(conf)
219219

220220
with ThreadPoolExecutor() as executor:
221221
results = executor.map(run, tests)
222222

223-
if not all(results):
223+
if not all(result[1] for result in results):
224+
print(f"projects failed: {" ".join(result[0].name for result in results)}")
224225
exit(1)

0 commit comments

Comments
 (0)