From de2ad6ae2bc2d622838d0a44fe70108850e52a4e Mon Sep 17 00:00:00 2001 From: John Pohovey Date: Tue, 2 Dec 2025 00:12:39 -0800 Subject: [PATCH] fix Windows support for exectuable search and test running --- run_tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/run_tests.py b/run_tests.py index a292dde82..2a5efd929 100644 --- a/run_tests.py +++ b/run_tests.py @@ -83,19 +83,23 @@ def find_executables(root_dir): # Skip if it's a library file if path.suffix.lower() in ('.dll', '.so', '.dylib'): continue + # On Windows, only include .exe files + if sys.platform == 'win32' and path.suffix.lower() != '.exe': + continue executables.append(path) return executables def run_single_test_instance(executable, args, output_file, global_args, run_description): """Run a single instance of a test executable with specific arguments.""" - exe_path = str(executable) + exe_path = str(executable.resolve()) exe_name = executable.name safe_print(f"Starting {exe_name} {run_description}") try: - cmd = [f"./{exe_name}"] + # Use the full path to the executable for crossplat compat + cmd = [exe_path] cmd.extend(args) if global_args: cmd.extend(global_args)