From 36fdecf43d7b41ae5e213803fc8f429fc08d659c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 22 Apr 2018 19:09:47 +0300 Subject: Fix: set env vars inside container --- ick2/actionenvs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ick2') diff --git a/ick2/actionenvs.py b/ick2/actionenvs.py index 8b12c2f..78d4e5a 100644 --- a/ick2/actionenvs.py +++ b/ick2/actionenvs.py @@ -163,7 +163,8 @@ class ContainerEnvironment(ActionEnvironment): '--bind', bind, '--chdir', '/workspace', ] - for key in self._extra_env: # pragma: no cover - var = '{}={}'.format(key, self._extra_env[key]) + env = self.get_env_vars() + for key in env: # pragma: no cover + var = '{}={}'.format(key, env[key]) prefix.extend(['--setenv', var]) return self.host_runcmd(prefix + argv) -- cgit v1.2.1