From 28d9b1a49b5969fe41fc6ec1dfea6ff39a3e9fe0 Mon Sep 17 00:00:00 2001 From: Dextroid17 <217507631+Dextroid17@users.noreply.github.com> Date: Wed, 7 Oct 2026 16:12:57 -0400 Subject: [PATCH] fix(ci): read the test executable list on Windows as well The Windows job failed on the new step with "no test executables found under build". Ninja prints the target names with the platform separator, so the Windows build graph lists tests\name_tests.exe where Linux lists tests/name_tests, and the reader matched neither the backslash nor the .exe suffix. Accept both separators and a .exe suffix. Verified by driving the function with recorded Ninja output for both platforms, which now return the same names, and by re-running the check against the Linux tree, which still reports 362 test executables and the same five. --- tools/check_test_registration.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/check_test_registration.py b/tools/check_test_registration.py index 4931f8836..8d8011efa 100644 --- a/tools/check_test_registration.py +++ b/tools/check_test_registration.py @@ -3,7 +3,7 @@ import re import subprocess from pathlib import Path -TEST_OUTPUT = "tests/" +TEST_OUTPUT = r"tests[\\/]" KNOWN_UNRUN = { "agc_driver_bda_device_tests", @@ -19,9 +19,14 @@ def built(build): capture_output=True, text=True, check=True).stdout names = set() for line in listed.splitlines(): - found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_]+)(?::|\s|$)", line) - if found: - names.add(found.group(1)) + found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_.]+)", line) + if not found: + continue + name = found.group(1).rstrip(".") + if name.endswith(".exe"): + name = name[:-4] + if name: + names.add(name) return names