From: Bjørn Erik Pedersen Date: Mon, 24 Nov 2025 18:42:28 +0000 (+0100) Subject: github: Partition tests by their root X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b592d34efe95daabc1912fd6cd7c5529e07a95ae;p=brevno-suite%2Fhugo github: Partition tests by their root --- diff --git a/magefile.go b/magefile.go index c37ef3fa7..e09e7987b 100644 --- a/magefile.go +++ b/magefile.go @@ -194,6 +194,13 @@ func TestRace() error { return err } for _, pkg := range pkgs { + slashCount := strings.Count(pkg, "/") + if slashCount > 1 { + continue + } + if pkg != "." { + pkg += "/..." + } if err := cmp.Or(CleanTest(), UninstallAll()); err != nil { return err }