magefile: Skip commands test when running mage check locally

They're flaky for some reason.
This commit is contained in:
Bjørn Erik Pedersen
2026-01-27 08:56:25 +01:00
parent 8dfcece805
commit ef7a22a2ff
+3 -1
View File
@@ -162,7 +162,7 @@ func testGoFlags() string {
return ""
}
return "-timeout=1m"
return "-timeout=2m"
}
// Clean Go's test cache.
@@ -221,6 +221,8 @@ func TestRace() error {
}
return nil
} else {
// These are flaky when run locally for some reason, is stable on CI.
env["HUGOTESTING_SKIP_COMMANDS"] = "1"
return runCmd(env, goexe, "test", "-race", "./...", "-tags", buildTags())
}
}