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:
parent
67d16d22b1
commit
da35fda145
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue