fix test on macos

This commit is contained in:
Donny Xia
2020-08-04 11:01:06 -07:00
parent 60422c8090
commit c99bc47c8d

View File

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