Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Clear CARGO_TARGET_DIR for tests. #1482

Merged
merged 1 commit into from
Jun 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/support/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ impl Project {
let mut cmd = Command::new(rls_exe());
cmd.current_dir(self.root());
cmd.stderr(Stdio::inherit());
// If `CARGO_TARGET_DIR` is set (such as in rust-lang/rust), don't
// reuse it. Each test needs its own target directory so they don't
// stomp on each other's files.
cmd.env_remove("CARGO_TARGET_DIR");

cmd
}
Expand Down