Fix cmd/config windows issues

This commit is contained in:
Phillip Wittrock
2020-05-20 16:11:08 -07:00
parent d616c9c315
commit 28c919912a
10 changed files with 84 additions and 29 deletions

View File

@@ -103,7 +103,11 @@ metadata:
// configure expected env
for _, e := range os.Environ() {
// the process env
tt.expectedArgs = append(tt.expectedArgs, "-e", strings.Split(e, "=")[0])
parts := strings.Split(e, "=")
if parts[0] == "" || parts[1] == "" {
continue
}
tt.expectedArgs = append(tt.expectedArgs, "-e", parts[0])
}
tt.expectedArgs = append(tt.expectedArgs, tt.instance.Image)