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

Commit 8da600c

Browse files
committed
Set the __CARGO_TEST_ROOT env variable for during tests.
1 parent daa138c commit 8da600c

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)