Skip to content

Commit de2ad6a

Browse files
committed
fix Windows support for exectuable search and test running
1 parent c94ff36 commit de2ad6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

run_tests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,23 @@ def find_executables(root_dir):
8383
# Skip if it's a library file
8484
if path.suffix.lower() in ('.dll', '.so', '.dylib'):
8585
continue
86+
# On Windows, only include .exe files
87+
if sys.platform == 'win32' and path.suffix.lower() != '.exe':
88+
continue
8689
executables.append(path)
8790

8891
return executables
8992

9093
def run_single_test_instance(executable, args, output_file, global_args, run_description):
9194
"""Run a single instance of a test executable with specific arguments."""
92-
exe_path = str(executable)
95+
exe_path = str(executable.resolve())
9396
exe_name = executable.name
9497

9598
safe_print(f"Starting {exe_name} {run_description}")
9699

97100
try:
98-
cmd = [f"./{exe_name}"]
101+
# Use the full path to the executable for crossplat compat
102+
cmd = [exe_path]
99103
cmd.extend(args)
100104
if global_args:
101105
cmd.extend(global_args)

0 commit comments

Comments
 (0)