github: Partition tests by their root

This commit is contained in:
Bjørn Erik Pedersen
2025-11-24 19:42:28 +01:00
parent 18a2afa519
commit b592d34efe

View File

@@ -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
}