From 8da600cfd93586ee15e5c5389cfd57aa6eeb69df Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Fri, 23 Nov 2018 00:43:52 +0200 Subject: [PATCH] Set the __CARGO_TEST_ROOT env variable for during tests. --- tests/support/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/support/mod.rs b/tests/support/mod.rs index 8326e79e935..706ef450fdc 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -375,6 +375,7 @@ impl Project { .stdin(Stdio::piped()) .stdout(Stdio::piped()) .current_dir(self.root()) + .env("__CARGO_TEST_ROOT", self.root()) .spawn() .unwrap(), )