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

Cargo tests can accidently pickup ~/.cargo/config #3863

Closed
matklad opened this issue Mar 24, 2017 · 1 comment · Fixed by #3869
Closed

Cargo tests can accidently pickup ~/.cargo/config #3863

matklad opened this issue Mar 24, 2017 · 1 comment · Fixed by #3869

Comments

@matklad
Copy link
Member

matklad commented Mar 24, 2017

When testing Cargo itself, it picks up configuration from ~/.cargo/config which may cause some test to fail.

We probably want to fix it, but I can't concoct a non ugly way do do this. An ugly way would be to set a __CARGO_TEST_STOP_AT environmental variable.

@alexcrichton
Copy link
Member

Yeah I'd be ok w/ an ugly env var for now, it'd at least get the job done.

matklad added a commit to matklad/cargo that referenced this issue Mar 25, 2017
bors added a commit that referenced this issue Mar 27, 2017
Don't read ~/.cargo/config in tests

Closes #3863

r? @alexcrichton
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 a pull request may close this issue.

2 participants