upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorettehn <141814824+ettehn@users.noreply.github.com>2026-11-24 14:02:53 +0800
committerettehn <141814824+ettehn@users.noreply.github.com>2026-11-24 14:02:53 +0800
commitb35b222df1ca501cc53697a28548456e5dadfb98 (patch)
tree3ad41d8e679ac0da8aa4a1b0f1c68e635a9ae0c7 /scripts/run_gpu_tests.py
parent8f481cf16f261c7f37458aeb45e8f4e19994146d (diff)
Keep the GPU helper verdict ahead of the device banner
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 483287fbd..a075c876a 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -268,10 +268,11 @@ def unsupported_skip(msg: str) -> str:
268 268
269 269
270def verdict_line(rc: int, msg: str) -> str: 270def verdict_line(rc: int, msg: str) -> str:
271 """The detail of a row whose test program judges itself and prints its verdict last: that line. A program that 271 """Report the helper's verdict, prefixed with its exit status on failure."""
272 exited non-zero gets its exit status in front, as in check.py, so one that died before its verdict (exit -11 on 272 # run_cmd appends stderr to stdout. A device banner on stderr can follow the verdict.
273 Linux, 3221225477 = 0xC0000005 on Windows) does not read as a FAIL with only its device or extension line, or 273 output, _, last = msg.rstrip().rpartition("\n")
274 with no detail at all.""" 274 if output and last.startswith("device: "):
275 msg = output
275 return failure(rc, msg, 1) if rc else msg.splitlines()[-1] if msg else "" 276 return failure(rc, msg, 1) if rc else msg.splitlines()[-1] if msg else ""
276 277
277 278