Config: ignore an empty VICTORY_TEST_TITLES #341
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/341"
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?
Imported from Marvisak/VIctory. Originally posted by enzoduarte1 on 2026-11-24T02:24:42Z.
What
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).Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:21:55Z.
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