moby/integration/plugin
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
..
authz Windows: Start of enabling tests under integration/ 2018-11-08 13:55:48 +01:00
common API: properly handle invalid JSON to return a 400 status 2018-11-08 14:01:27 +01:00
graphdriver Fix flaky TestExternalGraphDriver/pull test 2018-07-17 10:45:33 +02:00
logging Fix: plugin-tests discarding current environment 2019-02-20 11:27:07 +01:00
volumes Fix: plugin-tests discarding current environment 2019-02-20 11:27:07 +01:00
pkg_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00