Skip to content

tests: Clear XDG environment variables in tests#483

Merged
Matoking merged 1 commit into
Matoking:masterfrom
Vikyek:fix/test-env-leakage
May 20, 2026
Merged

tests: Clear XDG environment variables in tests#483
Matoking merged 1 commit into
Matoking:masterfrom
Vikyek:fix/test-env-leakage

Conversation

@Vikyek
Copy link
Copy Markdown
Contributor

@Vikyek Vikyek commented May 20, 2026

Clear XDG_CACHE_HOME and XDG_DATA_HOME in the default test environment
to prevent host environment variables from leaking into tests.

This fixes path assertion failures when these variables are set on the
host system, as Protontricks uses them to determine cache and data
locations even when HOME is mocked.

Clear XDG_CACHE_HOME and XDG_DATA_HOME in the default test environment
to prevent host environment variables from leaking into tests.

This fixes path assertion failures when these variables are set on the
host system, as Protontricks uses them to determine cache and data
locations even when HOME is mocked.
Comment thread tests/conftest.py
@Matoking Matoking merged commit e480893 into Matoking:master May 20, 2026
9 checks passed
@Matoking
Copy link
Copy Markdown
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants