[pr-tests][linux-proton] Tests: the preload restart test skips under Wine, whose powershell runs no script #385

Open
ntsthay wants to merge 1 commit from ntsthay/wine-preload-restart into main AGit
First-time contributor

Tests only. Nothing here runs in the game.

Contributor role (optional)

  • Fluxer ID:

What it changes

host::menu::tests::preload_restart_preserves_paths_and_working_directory restarts through a PowerShell launcher script and waits up to 30 s for the script to write its result. Under Wine (Proton on Linux), powershell.exe is Wine's builtin stub (programs/powershell/main.c), which logs its arguments and exits without running anything. The result never comes, and the test fails after 30 s.

Under Wine the test now returns before it starts the child, using on_wine() from resource.rs. On Windows it runs as before.

How it was tested

  • Tested revision: e127ef0, this branch on f3840d7.
  • Commands and results: cargo nextest run -p darner-gpu -E 'test(host::menu::)' under Proton (proton-cachyos, RTX 4080): 50 passed. On f3840d7 this test fails with "the restarted launcher did not report".
  • Gates 1 and 2 (cargo clippy -p darner-gpu -p darner-shader --all-targets, with and without --all-features, -D warnings) are clean. Gate 3 ran under Wine, not on Windows.
  • Coverage gaps: not run on Windows.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #349, #354 and #363 make other tests pass under Wine.
  • Replaces or overlaps: none found
Tests only. Nothing here runs in the game. ## Contributor role (optional) - Fluxer ID: ## What it changes `host::menu::tests::preload_restart_preserves_paths_and_working_directory` restarts through a PowerShell launcher script and waits up to 30 s for the script to write its result. Under Wine (Proton on Linux), `powershell.exe` is Wine's builtin stub (`programs/powershell/main.c`), which logs its arguments and exits without running anything. The result never comes, and the test fails after 30 s. Under Wine the test now returns before it starts the child, using `on_wine()` from `resource.rs`. On Windows it runs as before. ## How it was tested - Tested revision: `e127ef0`, this branch on `f3840d7`. - Commands and results: `cargo nextest run -p darner-gpu -E 'test(host::menu::)'` under Proton (proton-cachyos, RTX 4080): 50 passed. On `f3840d7` this test fails with "the restarted launcher did not report". - Gates 1 and 2 (`cargo clippy -p darner-gpu -p darner-shader --all-targets`, with and without `--all-features`, `-D warnings`) are clean. Gate 3 ran under Wine, not on Windows. - Coverage gaps: not run on Windows. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #349, #354 and #363 make other tests pass under Wine. - Replaces or overlaps: none found
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/385/head:ntsthay/wine-preload-restart'
git switch 'ntsthay/wine-preload-restart'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'ntsthay/wine-preload-restart'
git switch 'ntsthay/wine-preload-restart'
git rebase 'main'
git switch 'main'
git merge --ff-only 'ntsthay/wine-preload-restart'
git switch 'ntsthay/wine-preload-restart'
git rebase 'main'
git switch 'main'
git merge --no-ff 'ntsthay/wine-preload-restart'
git switch 'main'
git merge --squash 'ntsthay/wine-preload-restart'
git switch 'main'
git merge --ff-only 'ntsthay/wine-preload-restart'
git switch 'main'
git merge 'ntsthay/wine-preload-restart'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!385
No description provided.