Skip to content

Commit 533a16f

Browse files
committed
Merge pull request #102 from xapi-project/run-without-root
test: pass through the environment to subprocesses
2 parents 83637a9 + 8cff047 commit 533a16f

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)