fix(tests): Ensure show_settings tests don't load user config (#15434)

## Summary

Ensure show_settings tests set XDG_CONFIG_HOME to avoid loading user
configuration

Closes #15403
This commit is contained in:
Pepe Osca
2025-08-22 00:10:11 +02:00
committed by GitHub
parent f210db0907
commit c4f2da729c
+3 -1
View File
@@ -18,7 +18,9 @@ fn add_shared_args(mut command: Command, cwd: &Path) -> Command {
.env(EnvVars::UV_CONCURRENT_BUILDS, "16")
.env(EnvVars::UV_CONCURRENT_INSTALLS, "8")
// Set an explicit `XDG_CONFIG_DIRS` to avoid loading system configuration.
.env(EnvVars::XDG_CONFIG_DIRS, cwd);
.env(EnvVars::XDG_CONFIG_DIRS, cwd)
// Set an explicit `XDG_CONFIG_HOME` to avoid loading user configuration.
.env(EnvVars::XDG_CONFIG_HOME, cwd);
if cfg!(unix) {
// Avoid locale issues in tests