Skip to content

Commit 8cff047

Browse files
author
David Scott
committed
test: pass through the environment to subprocesses
This will include the BISECT_FILE variable, needed for bisect. Signed-off-by: David Scott <[email protected]>
1 parent 348e93a commit 8cff047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ let canonicalise x =
131131

132132
exception Bad_exit of int * string * string list * string * string
133133

134-
let run ?(env= [| |]) ?stdin cmd args =
134+
let run ?(env= Unix.environment()) ?stdin cmd args =
135135
let cmd = canonicalise cmd in
136136
debug "%s %s" cmd (String.concat " " args);
137137
let null = Unix.openfile "/dev/null" [ Unix.O_RDWR ] 0 in

0 commit comments

Comments
 (0)