Skip to content

Commit b592d34

Browse files
committed
github: Partition tests by their root
1 parent 18a2afa commit b592d34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

magefile.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ func TestRace() error {
194194
return err
195195
}
196196
for _, pkg := range pkgs {
197+
slashCount := strings.Count(pkg, "/")
198+
if slashCount > 1 {
199+
continue
200+
}
201+
if pkg != "." {
202+
pkg += "/..."
203+
}
197204
if err := cmp.Or(CleanTest(), UninstallAll()); err != nil {
198205
return err
199206
}

0 commit comments

Comments
 (0)