diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/run_wine_tests.py | 4 |
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 - | |||
| 15 | Every test is reported. The exit code is 1 if a test named by --require fails or is missing, else 0: the | 15 | Every test is reported. The exit code is 1 if a test named by --require fails or is missing, else 0: the |
| 16 | others show what does and doesn't work under Wine yet without failing the job. | 16 | others 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. |
| 18 | Relative executable paths in --wine or WINE are read from the directory where you start this runner. | ||
| 18 | """ | 19 | """ |
| 19 | import argparse | 20 | import argparse |
| 20 | from graphlib import CycleError, TopologicalSorter | 21 | from 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") |