moby/integration/plugin/logging
Sebastiaan van Stijn 19e733f89f
Fix: plugin-tests discarding current environment
By default, exec uses the environment of the current process, however,
if `exec.Env` is not `nil`, the environment is discarded:

e73f489494/src/os/exec/exec.go (L57-L60)

> If Env is nil, the new process uses the current process's environment.

When adding a new environment variable, prepend the current environment,
to make sure it is not discarded.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit b84bff7f8a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-02-20 11:27:07 +01:00
..
cmd Fix logging plugin crash unrecoverable 2018-05-14 16:51:56 -04:00
helpers_test.go Fix: plugin-tests discarding current environment 2019-02-20 11:27:07 +01:00
logging_linux_test.go Enabling Windows integration tests 2018-11-08 13:55:59 +01:00
main_test.go Move integration-cli daemon package to internal/test… 2018-04-10 16:29:48 +02:00
validation_test.go Windows: Start of enabling tests under integration/ 2018-11-08 13:55:48 +01:00