content adapter: Add support for menus in AddPage

Fixes #12507
This commit is contained in:
Bjørn Erik Pedersen
2024-05-29 13:23:36 +02:00
parent 519f41dbd7
commit 245928a1ff
5 changed files with 50 additions and 16 deletions

View File

@@ -167,19 +167,19 @@ func testGoFlags() string {
// Note that we don't run with the extended tag. Currently not supported in 32 bit.
func Test386() error {
env := map[string]string{"GOARCH": "386", "GOFLAGS": testGoFlags()}
return runCmd(env, goexe, "test", "./...")
return runCmd(env, goexe, "test", "-p", "2", "./...")
}
// Run tests
func Test() error {
env := map[string]string{"GOFLAGS": testGoFlags()}
return runCmd(env, goexe, "test", "./...", "-tags", buildTags())
return runCmd(env, goexe, "test", "-p", "2", "./...", "-tags", buildTags())
}
// Run tests with race detector
func TestRace() error {
env := map[string]string{"GOFLAGS": testGoFlags()}
return runCmd(env, goexe, "test", "-race", "./...", "-tags", buildTags())
return runCmd(env, goexe, "test", "-p", "2", "-race", "./...", "-tags", buildTags())
}
// Run gofmt linter