testing: in MkAllocDir, do not update TaskConfig with All() from the task builder, just with Env() (because it pollutes environment variables with node attributes and fails the rkt tests)

This commit is contained in:
Chris Baker 2018-11-28 22:19:48 +00:00
parent 67d16d22b1
commit da35fda145

View file

@ -117,9 +117,9 @@ func (h *DriverHarness) MkAllocDir(t *TaskConfig, enableLogs bool) func() {
taskEnv := taskBuilder.Build()
if t.Env == nil {
t.Env = taskEnv.All()
t.Env = taskEnv.Map()
} else {
for k, v := range taskEnv.All() {
for k, v := range taskEnv.Map() {
if _, ok := t.Env[k]; !ok {
t.Env[k] = v
}