test(release): run_all finds openssl (Git for Windows' own too) and skips test_release without one #144
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!144
Loading…
Reference in a new issue
No description provided.
Delete branch "d4nkn3ss/Longshot:fix/run-all-openssl"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
On Windows,
tests/test_release.pyerrors from PowerShell or cmd ("the openssl command line is needed") instead of being skipped, becauseopensslis on PATH only inside Git Bash. Every other check whose tool is missing is skipped and says so.What changed
tests/run_all.py'sfind_tools()gainsopenssl: on PATH, else Git for Windows' ownusr\bin\openssl.exenext to the git on PATH (git_openssl()), which every Windows checkout has.tests/test_release.pydeclaresRUN_ALL_ARGS = ["--openssl", "{openssl}"], and with--opensslputs that folder first on PATH forrelease.py'sopensslcalls; with none found,run_allskips it ("not found here: openssl").tests/test_run_all_declarations.py'sTOOLSgainsopenssl(it checks the set matchesfind_tools()).CONTRIBUTING.mdandrun_all.py's docstring.Flags and settings
None
Measurements
main:
e28236b4(2026-11-12)this PR: fix/run-all-openssl @ 33dbc033
Hardware: Windows 11, Python 3.12 from python.org, Git for Windows 2.56.1; PowerShell (openssl not on PATH)
Scene: n/a (game-free)
Method:
python -I -B tests/run_all.py test_releasefrom PowerShell on both sides, and once with Git off PATHHow to reproduce: on Windows, from PowerShell,
python -I -B tests/run_all.py test_releasee28236b4test_release's key tests (Keys), openssl not on PATHtest_releasewith no openssl at all (Git off PATH)tests/run_all.py run_all(the runner's own tests)Testing
Tested: the rows above on Windows 11.
Full suite:
python -I -B tests/run_all.pyon this branch @ 33dbc033: 500 passed, 3 failed, 35 skipped, the same three as main @e28236b4:tests/test_check_third_party.py(#80),tests/test_setup_runtime.py(#118) andtests/test_release.py, whose two remaining failures are #119 (the SHA256SUMS fixture) and #145 (the git-cliff stand-in).Not tested: Linux:
opensslis on PATH there, sowhich("openssl")finds it as before andgit_openssl()isn't reached.Needs other testers: None
Screenshots
Nothing on screen
Risk and rollback
Tests only; reverting the commit is enough.
Issues
None
Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.tests/that reads changed source updated in this PR, not weakened.🤖 Generated with Claude Code
33dbc03343d7f50a4f5bView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.