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

Commit

Permalink
Merge pull request #1138 from eddyb/top-hacks
Browse files Browse the repository at this point in the history
Set the __CARGO_TEST_ROOT env variable for during tests.
  • Loading branch information
eddyb authored Nov 23, 2018
2 parents daa138c + 8da600c commit 77b2611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ impl Project {
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.current_dir(self.root())
.env("__CARGO_TEST_ROOT", self.root())
.spawn()
.unwrap(),
)
Expand Down

0 comments on commit 77b2611

Please sign in to comment.