Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests should use different default user dir #39872

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

jbytheway
Copy link
Contributor

@jbytheway jbytheway commented Apr 25, 2020

Summary

SUMMARY: Infrastructure "Tests use a different config directory by default"

Purpose of change

Tests can fail due to user config differing from the defaults. This was caused by the tests using the current directory as their user directory. This is probably not desirable, and has certainly caused confusion.

Describe the solution

Change the default test user dir to be something separate and obviously test-specific.

Describe alternatives you've considered

We could wipe the directory before or after the tests to ensure it's really clean every time. I didn't do that mostly because it's annoying to implement in a platform-independent way. So I have opted for the minimal solution.

Testing

The latest time this affected me was when I set my in-game language option. That can cause tests to fail in a similar manner to the one fixed by #39648 (but slightly different).

With this change, that particular failure no longer occurs.

Additional context

This PR is dedicated to @wapcaplet, who suffered more test failures and grief than anyone should due to this issue.

Tests can fail due to user config differing from the defaults.  This was
caused by the tests using the current directory as their user directory.
This is probably not desirable.  Change the default test user dir to be
something separate and obviously test-specific.
@ralreegorganon ralreegorganon merged commit d834d7a into CleverRaven:master Apr 25, 2020
@jbytheway jbytheway deleted the tests_custom_user_dir branch April 25, 2020 10:52
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