upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_wine_tests.py
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:15:48 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:15:48 -0500
commit3d713526ea1d98461c0bdb75fe27d8e5ecf058e9 (patch)
tree294ab9c3ef61bd1c938e3c56f5a39889b0744fa6 /scripts/run_wine_tests.py
parent24f05e551759b2c957b9a1753b447a0c45cab5cc (diff)
parent26d2473378aaa0fed54b64b02204be1803b6df5d (diff)
Merge pull request #4547 from AGInformatique81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_wine_tests.py')
-rw-r--r--scripts/run_wine_tests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/run_wine_tests.py b/scripts/run_wine_tests.py
index 4d03bf530..db070aa67 100644
--- a/scripts/run_wine_tests.py
+++ b/scripts/run_wine_tests.py
@@ -168,9 +168,11 @@ def run_test(test: dict, args, wine: list[str], *, failed_setups: tuple[str, ...
168 for a in command[1:]: 168 for a in command[1:]:
169 mapped = map_path(a, args.windows_root, args.root) 169 mapped = map_path(a, args.windows_root, args.root)
170 argv.append(wine_path(mapped) if mapped is not None else a) 170 argv.append(wine_path(mapped) if mapped is not None else a)
171 cwd = props.get("WORKING_DIRECTORY") 171 listed_cwd = props.get("WORKING_DIRECTORY")
172 cwd = map_path(cwd, args.windows_root, args.root) if cwd else os.path.dirname(exe) 172 cwd = map_path(listed_cwd, args.windows_root, args.root) if listed_cwd else None
173 if not cwd or not os.path.isdir(cwd): 173 if cwd is not None and not os.path.isdir(cwd):
174 return "fail", f"CTest working directory is not a directory: {listed_cwd} (mapped to {cwd})"
175 if cwd is None:
174 cwd = os.path.dirname(exe) 176 cwd = os.path.dirname(exe)
175 assignments = props.get("ENVIRONMENT", []) 177 assignments = props.get("ENVIRONMENT", [])
176 if not isinstance(assignments, list): 178 if not isinstance(assignments, list):