aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/internal/testenv/exec.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/testenv/exec.go b/src/internal/testenv/exec.go
index 7b251b6022..1ad77fe21a 100644
--- a/src/internal/testenv/exec.go
+++ b/src/internal/testenv/exec.go
@@ -137,6 +137,10 @@ func CleanCmdEnv(cmd *exec.Cmd) *exec.Cmd {
if strings.HasPrefix(env, "GOTRACEBACK=") {
continue
}
+ // Exclude for TestCgroupGOMAXPROCSXxx.
+ if strings.HasPrefix(env, "GOMAXPROCS=") {
+ continue
+ }
cmd.Env = append(cmd.Env, env)
}
return cmd