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()
|
taskEnv := taskBuilder.Build()
|
||||||
if t.Env == nil {
|
if t.Env == nil {
|
||||||
t.Env = taskEnv.All()
|
t.Env = taskEnv.Map()
|
||||||
} else {
|
} else {
|
||||||
for k, v := range taskEnv.All() {
|
for k, v := range taskEnv.Map() {
|
||||||
if _, ok := t.Env[k]; !ok {
|
if _, ok := t.Env[k]; !ok {
|
||||||
t.Env[k] = v
|
t.Env[k] = v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue