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-23 17:07:12 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 17:07:12 -0500
commite688f7df1cd9d8d79a48e5a5feaacc8ea5c08879 (patch)
tree423c968f3039d0111ea9101fe628d2918142a697 /scripts/run_wine_tests.py
parent5b12f22dfc8b3e55a9a3291be7258b1c2f5e8d87 (diff)
parent9a71bb4b2a83f1600fb075d1ab598b610d5eb2d0 (diff)
Merge PR #9548
Diffstat (limited to 'scripts/run_wine_tests.py')
-rw-r--r--scripts/run_wine_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run_wine_tests.py b/scripts/run_wine_tests.py
index 1832fd681..3b7b466f3 100644
--- a/scripts/run_wine_tests.py
+++ b/scripts/run_wine_tests.py
@@ -15,6 +15,7 @@ runtime/build/generated). For those, the drive of --windows-root is pointed at -
15Every test is reported. The exit code is 1 if a test named by --require fails or is missing, else 0: the 15Every test is reported. The exit code is 1 if a test named by --require fails or is missing, else 0: the
16others show what does and doesn't work under Wine yet without failing the job. 16others show what does and doesn't work under Wine yet without failing the job.
17--timeout caps each process; a shorter positive CTest TIMEOUT takes precedence for that test. 17--timeout caps each process; a shorter positive CTest TIMEOUT takes precedence for that test.
18Relative executable paths in --wine or WINE are read from the directory where you start this runner.
18""" 19"""
19import argparse 20import argparse
20from graphlib import CycleError, TopologicalSorter 21from graphlib import CycleError, TopologicalSorter
@@ -353,6 +354,9 @@ def main() -> int:
353 print("ERROR: CTest test dependencies form a cycle", file=sys.stderr) 354 print("ERROR: CTest test dependencies form a cycle", file=sys.stderr)
354 return 2 355 return 2
355 wine = args.wine 356 wine = args.wine
357 # Each test starts in its own CTest working directory. Keep bare commands on PATH.
358 if os.path.dirname(wine[0]) and not os.path.isabs(wine[0]):
359 wine[0] = os.path.join(os.getcwd(), wine[0])
356 results = {} 360 results = {}
357 results_by_index: dict[int, str] = {} 361 results_by_index: dict[int, str] = {}
358 prefix = os.environ.get("WINEPREFIX") or os.path.join(os.path.expanduser("~"), ".wine") 362 prefix = os.environ.get("WINEPREFIX") or os.path.join(os.path.expanduser("~"), ".wine")