From 8cff0477ae24f44065c5f1551a87913e77661231 Mon Sep 17 00:00:00 2001 From: David Scott Date: Tue, 26 May 2015 15:18:52 +0000 Subject: [PATCH] test: pass through the environment to subprocesses This will include the BISECT_FILE variable, needed for bisect. Signed-off-by: David Scott --- test/common.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common.ml b/test/common.ml index 5c939c0..4023799 100644 --- a/test/common.ml +++ b/test/common.ml @@ -131,7 +131,7 @@ let canonicalise x = exception Bad_exit of int * string * string list * string * string -let run ?(env= [| |]) ?stdin cmd args = +let run ?(env= Unix.environment()) ?stdin cmd args = let cmd = canonicalise cmd in debug "%s %s" cmd (String.concat " " args); let null = Unix.openfile "/dev/null" [ Unix.O_RDWR ] 0 in