Config: ignore an empty VICTORY_TEST_TITLES #341
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!341
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/341/head"
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?
@enzoduarte1 on GitHub · 2026-11-24 02:24 UTC · original
enzoduarte1:config/empty-test-titles-env→main· +25 −2 · 1 files · 1 commits · merged 2026-11-24 08:01 UTCWhat
Config::resolvetreats every empty path environment variable as unset (VICTORY_GAME_DIR,VICTORY_CACHE_DIR,VICTORY_DATA_DIR), but an emptyVICTORY_TEST_TITLESsilently replaced the paths fromvictory.tomlwith an empty list. A shell that exports the variable without a value therefore disabled all configured test titles.The match now requires a non-empty value, matching
env_path; non-empty values still go throughsplit_paths. Two tests cover the empty-value case and the existing separator behaviour.Tested
x86_64-pc-windows-gnu(this machine has no MSVC linker).cargo test -p victory-core: 10 passed, 0 failed.cargo test --workspace --exclude victory-loader: all suites passed.cargo clippy -p victory-core --all-targets -- -D warnings: clean.rustfmt --edition 2024 --check crates/victory-core/src/config.rs: clean.cargo xtask policy: 151 files ok. No game files or data taken from them were added.cargo test -p victory-loader --test load_probe. The fixture passes MSVC's/DELAYLOADlink flag, which MinGW's linker rejects here; I reproduced the same failure on unmodifiedmain.cargo fmt --all --checkand workspace-wide clippy also report pre-existing diffs and warnings on unmodifiedmainwith this toolchain, so I checked only the changed file and crate.Checklist
cargo fmt,cargo clippy --workspace --all-targetsandcargo test --workspacepass — see the toolchain limitation above; the changed crate is clean.cargo xtask policypasses. The change adds no game files or data taken from them (docs/asset-policy.md).@jeremygold02 on GitHub · 2026-11-24 04:21 UTC · original
Tested PR #341 at head
cc63aa269f0750b8848813c467676d3a23f188a4(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged atcc63aa269f0750b8848813c467676d3a23f188a4.cargo test --locked -p victory-core test_titles_env_— passed (ok. 2 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 0.00s ); cases: config::tests::empty_test_titles_env_is_ignored, config::tests::test_titles_env_splits_paths.Behavior covered: Checks an empty VICTORY_TEST_TITLES setting is ignored and non-empty path lists still split correctly.
Code: crates/victory-core/src/config.rs