test(privacy): the log check compares the scrubbed line, not a substring #280
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!280
Loading…
Reference in a new issue
No description provided.
Delete branch "riqmarmes/LongshotLauncher:fix/tests-privacy-account-name"
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
The full core suite cannot run on a Windows account literally named
user: the PC-specific privacy check searches the scrubbed log line for theuserstring, but the line intentionally contains%USERPROFILE%,<user>and the literalD:\Users, all of which contain it. The scrub is correct; the test's substring check is not.What changed
tests/launcher_core/PrivacyChecks.cs: the PC-specific log check compares the whole scrubbed line, and the clock before it, with what it should be, instead of searching for the account name as a substring. A real user name outside the placeholders still fails the check.Test-only; no product code, settings or behaviour changes.
Testing
user),python -I tests/test_launcher_core.py --dotnet …now passesPrivacyChecksand runs on toSavesChecks' symlink checks; those stop on this machine's missing symlink privilege (Developer Mode/elevation), a separate, pre-existing environment limit, not this change.This also unblocks the full core run for #279 (the shortcut setting), whose remaining caveat was this assertion.
Related work
No existing PR fixes this. #164 introduced the privacy rule and this check; #225 made the suite green again and #242 redacts paths on screen, but neither covers an account name that also appears in
%USERPROFILE%,<user>orUsers.Assisted-by: DeepSeek Harness (deepseek-flash)