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

Commit 77b2611

Browse files
authored
Merge pull request #1138 from eddyb/top-hacks
Set the __CARGO_TEST_ROOT env variable for during tests.
2 parents daa138c + 8da600c commit 77b2611

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/support/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ impl Project {
375375
.stdin(Stdio::piped())
376376
.stdout(Stdio::piped())
377377
.current_dir(self.root())
378+
.env("__CARGO_TEST_ROOT", self.root())
378379
.spawn()
379380
.unwrap(),
380381
)

0 commit comments

Comments
 (0)