Skip to content

Commit d23919c

Browse files
edemaineGeoffreyBooth
authored andcommitted
Preserve environment when calling coffee from test (#5191)
This change spawns `coffee` with a new path, but without removing all other environment variables. This is useful for preserving environment needed by Node, for example, `LD_LIBRARY_PATH` on Unix. In particular, fix #5179.
1 parent e6f6aa8 commit d23919c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/invocation_argument_parsing.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ coffeeCommand = if isWindows() then 'node coffee' else 'coffee'
1111
spawnOptions =
1212
cwd: coffeeBinFolder
1313
encoding: 'utf8'
14-
env:
14+
env: Object.assign {}, process.env,
1515
PATH: coffeeBinFolder + (if isWindows() then ';' else ':') + process.env.PATH
1616
shell: isWindows()
1717

0 commit comments

Comments
 (0)