From 0208dea491bee7b8258097f45b6818db6b996bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Franch?= Date: Thu, 8 Oct 2026 11:40:34 +0200 Subject: [PATCH] ci: fail when a KNOWN_UNRUN test is run by ctest agc_driver_bda_device_tests is registered on main, so its entry hid any future loss of that registration. Co-Authored-By: Claude --- tools/check_test_registration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/check_test_registration.py b/tools/check_test_registration.py index d720292e1..23b30e37c 100644 --- a/tools/check_test_registration.py +++ b/tools/check_test_registration.py @@ -6,7 +6,6 @@ from pathlib import Path TEST_OUTPUT = r"tests[\\/]" KNOWN_UNRUN = { - "agc_driver_bda_device_tests", "agc_driver_mesh_tests", "agc_driver_recorder_tests", "guest_formatting_tests", @@ -68,10 +67,14 @@ if __name__ == "__main__": raise SystemExit(1) for name in sorted(set(unrun) & KNOWN_UNRUN): print(f"note: {name} is built and not run, as recorded") + stale = sorted(KNOWN_UNRUN & run) + for name in stale: + print(f"error: {name} is run by ctest now; remove it from KNOWN_UNRUN") fresh = sorted(set(unrun) - KNOWN_UNRUN) for name in fresh: print(f"error: {name} is built but no ctest test runs it") if fresh: print(f"{len(fresh)} test executable(s) would never run: ctest reports a full pass over what it knows, so a test nobody registered is invisible in CI") + if stale or fresh: raise SystemExit(1) print(f"{len(every)} test executable(s), {len(unrun)} built and not run as recorded, none new")