run_guest_scene: take the Wine from $WINE when --wine is not given #313

Open
github-bot wants to merge 1 commit from github-bot/gh-313 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 03:07 UTC · original
ubiquitarianism:old-pr/10047 → main · +82 −4 · 2 files · 1 commits · draft

Carried over from old PR 10047 by SkippySteve in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10047, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
SkippySteve: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117065492

On Linux, scripts/run_guest_scene.py stops at --wine is required outside Windows even when WINE names the Wine to use (for example UMU-Proton's files/bin/wine). run_wine_tests.py already defaults --wine to $WINE.

  • --wine now defaults to $WINE. A blank WINE counts as unset, and --wine still wins when both are given.
  • The error messages and help text mention WINE, and "not found" now names the path it tried.
  • New tests/test_run_guest_scene_wine.py (synthetic files only) covers: Wine taken from WINE, --wine-arg with Wine from WINE, --wine overriding WINE, unset/blank WINE still refused, and a WINE that does not exist. On main 5 of its 5 tests fail; with this change they pass. test_docs_cli_flags, test_dev_guest_scene and test_dev_discovery still pass.

I checked it on Arch with UMU-Proton 11.0: with WINE=…/UMU-Proton-11.0-2e-x86_64/files/bin/wine, parse_args resolves to that wine. With WINE unset it still exits 2. No game files, no GPU.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠Andretuta** on GitHub · 2026-11-24 03:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/313) `ubiquitarianism:old-pr/10047` → `main` · +82 −4 · 2 files · 1 commits · draft > Carried over from **old PR 10047** by `SkippySteve` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10047`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `SkippySteve`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117065492 On Linux, `scripts/run_guest_scene.py` stops at `--wine is required outside Windows` even when `WINE` names the Wine to use (for example UMU-Proton's `files/bin/wine`). `run_wine_tests.py` already defaults `--wine` to `$WINE`. - `--wine` now defaults to `$WINE`. A blank `WINE` counts as unset, and `--wine` still wins when both are given. - The error messages and help text mention `WINE`, and "not found" now names the path it tried. - New `tests/test_run_guest_scene_wine.py` (synthetic files only) covers: Wine taken from `WINE`, `--wine-arg` with Wine from `WINE`, `--wine` overriding `WINE`, unset/blank `WINE` still refused, and a `WINE` that does not exist. On `main` 5 of its 5 tests fail; with this change they pass. `test_docs_cli_flags`, `test_dev_guest_scene` and `test_dev_discovery` still pass. I checked it on Arch with UMU-Proton 11.0: with `WINE=…/UMU-Proton-11.0-2e-x86_64/files/bin/wine`, `parse_args` resolves to that wine. With `WINE` unset it still exits 2. No game files, no GPU. AI-assisted (Claude Code, Claude Opus 5.5).
On Linux the script stopped at '--wine is required outside Windows' even
with WINE naming the Wine to use (e.g. UMU-Proton's files/bin/wine), while
run_wine_tests.py already defaults --wine to $WINE. --wine now defaults to
$WINE (blank counts as unset); --wine still wins when both are given.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:53:02 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/313/head:github-bot/gh-313'
git switch 'github-bot/gh-313'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-313'
git switch 'github-bot/gh-313'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-313'
git switch 'github-bot/gh-313'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-313'
git switch 'main'
git merge --squash 'github-bot/gh-313'
git switch 'main'
git merge --ff-only 'github-bot/gh-313'
git switch 'main'
git merge 'github-bot/gh-313'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.