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:10:27 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:10:27 -0500
commit64f3dc1a6d90eec017042da1bbb204bbdad25977 (patch)
tree0a59d9792e0a4a5202352bdf1f05dc53679e5f0e /scripts/run_wine_tests.py
parent83b6194d167151b313cca2aa017af33517c30376 (diff)
parent6d3b3f9f4e524381cc059d3369ad8a97bbc585db (diff)
Merge pull request #4020 from bbareth
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.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/run_wine_tests.py b/scripts/run_wine_tests.py
index 6499eb74a..ffd015aba 100644
--- a/scripts/run_wine_tests.py
+++ b/scripts/run_wine_tests.py
@@ -193,6 +193,15 @@ def run_test(test: dict, args, wine: list[str], *, failed_setups: tuple[str, ...
193 return "fail", "invalid CTest TIMEOUT" 193 return "fail", "invalid CTest TIMEOUT"
194 if ctest_timeout > 0: 194 if ctest_timeout > 0:
195 timeout = min(timeout, ctest_timeout) 195 timeout = min(timeout, ctest_timeout)
196 skip_code = props.get("SKIP_RETURN_CODE")
197 if skip_code is not None:
198 error = "invalid CTest SKIP_RETURN_CODE: expected an integer from 0 to 255"
199 try:
200 skip_code = int(str(skip_code))
201 except ValueError:
202 return "fail", error
203 if not 0 <= skip_code <= 255:
204 return "fail", error
196 start = time.monotonic() 205 start = time.monotonic()
197 try: 206 try:
198 proc = subprocess.run(argv, cwd=cwd, env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, 207 proc = subprocess.run(argv, cwd=cwd, env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
@@ -209,8 +218,7 @@ def run_test(test: dict, args, wine: list[str], *, failed_setups: tuple[str, ...
209 # A negative return code is a host-signal termination (e.g. SIGSEGV), not a process exit code: 218 # A negative return code is a host-signal termination (e.g. SIGSEGV), not a process exit code:
210 # report it as a failure before SKIP_RETURN_CODE or WILL_FAIL can reinterpret it. 219 # report it as a failure before SKIP_RETURN_CODE or WILL_FAIL can reinterpret it.
211 return "fail", f"killed by signal {-code} in {elapsed:.1f} s\n{out}" 220 return "fail", f"killed by signal {-code} in {elapsed:.1f} s\n{out}"
212 skip_code = props.get("SKIP_RETURN_CODE") 221 if code == skip_code:
213 if skip_code is not None and code == int(skip_code):
214 return "skip", f"exit {code} (skip) in {elapsed:.1f} s\n{out}" 222 return "skip", f"exit {code} (skip) in {elapsed:.1f} s\n{out}"
215 detail = f"exit {code} in {elapsed:.1f} s\n{out}" 223 detail = f"exit {code} in {elapsed:.1f} s\n{out}"
216 skip_patterns = regex_list(props.get("SKIP_REGULAR_EXPRESSION", [])) 224 skip_patterns = regex_list(props.get("SKIP_REGULAR_EXPRESSION", []))